Skip to content

Commit 5cec1d2

Browse files
committed
feat: add toolParams, allowedApiCalls and requirements properties
1 parent 9b46887 commit 5cec1d2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/externalTools/domain/models/ExternalTool.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ export interface ExternalTool {
55
types: ToolType[]
66
scope: ToolScope
77
contentType?: string // Only present when scope is 'file'
8+
toolParameters?: { queryParameters?: Record<string, string>[] }
9+
allowedApiCalls?: { name: string; httpMethod: string; urlTemplate: string; timeOut: number }[]
10+
requirements?: { auxFilesExist: { formatTag: string; formatVersion: string }[] }
811
}
912

1013
export enum ToolType {

src/externalTools/infra/transformers/ExternalToolPayload.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ export interface ExternalToolPayload {
77
types: ToolType[]
88
scope: ToolScope
99
contentType?: string // Only present when scope is 'file'
10+
toolParameters?: { queryParameters?: Record<string, string>[] }
11+
allowedApiCalls?: { name: string; httpMethod: string; urlTemplate: string; timeOut: number }[]
12+
requirements?: { auxFilesExist: { formatTag: string; formatVersion: string }[] }
1013
}

src/externalTools/infra/transformers/externalToolsTransformer.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ export const externalToolsTransformer = (
1515
description: tool.description,
1616
types: tool.types,
1717
scope: tool.scope,
18-
contentType: tool.contentType
18+
contentType: tool.contentType,
19+
toolParameters: tool.toolParameters,
20+
allowedApiCalls: tool.allowedApiCalls,
21+
requirements: tool.requirements
1922
}))
2023
}

0 commit comments

Comments
 (0)