Skip to content

Commit 6491c16

Browse files
authored
Merge pull request #89 from cortex-reply/fix/tools-types
Update types to match Foundry Frontend
2 parents 5d66785 + 22c8f00 commit 6491c16

1 file changed

Lines changed: 26 additions & 21 deletions

File tree

src/components/Foundary/types.ts

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,14 @@ export interface DigitalColleague {
206206
relationTo: 'capabilities'
207207
value: number | Capability
208208
}
209+
| {
210+
relationTo: 'internalTools'
211+
value: number | InternalTool
212+
}
213+
| {
214+
relationTo: 'digital-colleagues'
215+
value: number | DigitalColleague
216+
}
209217
)[]
210218
| null
211219
knowledge?: (number | null) | Knowledge
@@ -241,27 +249,13 @@ export interface DigitalColleague {
241249
* via the `definition` "mcpTools".
242250
*/
243251
export interface McpTool {
244-
id: number
245-
name: string
246-
description?: string | null
247-
url?: string | null
248-
headers?:
249-
| {
250-
[k: string]: unknown
251-
}
252-
| unknown[]
253-
| string
254-
| number
255-
| boolean
256-
| null
257-
toolNames?:
258-
| {
259-
toolName: string
260-
id?: string | null
261-
}[]
262-
| null
263-
updatedAt: string
264-
createdAt: string
252+
id: number;
253+
name: string;
254+
description?: string | null;
255+
url?: string | null;
256+
transportType?: ('sse' | 'streamable_http') | null;
257+
updatedAt: string;
258+
createdAt: string;
265259
}
266260
/**
267261
* This interface was referenced by `Config`'s JSON-Schema
@@ -368,6 +362,17 @@ export interface KnowledgeBase {
368362
updatedAt: string
369363
createdAt: string
370364
}
365+
/**
366+
* This interface was referenced by `Config`'s JSON-Schema
367+
* via the `definition` "internalTools".
368+
*/
369+
export interface InternalTool {
370+
id: number;
371+
name: string;
372+
description?: string | null;
373+
updatedAt: string;
374+
createdAt: string;
375+
}
371376
/**
372377
* This interface was referenced by `Config`'s JSON-Schema
373378
* via the `definition` "identities".

0 commit comments

Comments
 (0)