Added tool UI to agent

This commit is contained in:
Emir Karabeg
2025-02-03 21:56:27 -08:00
parent 838fee32bc
commit 08fe6f2d39
16 changed files with 562 additions and 15 deletions
+1
View File
@@ -25,6 +25,7 @@ export const visionTool: ToolConfig<VisionParams, VisionResponse> = {
apiKey: {
type: 'string',
required: true,
requiredForToolCall: true,
description: 'API key for the selected model provider'
},
imageUrl: {
+1
View File
@@ -41,6 +41,7 @@ export const scrapeTool: ToolConfig<ScrapeParams, ScrapeResponse> = {
apiKey: {
type: 'string',
required: true,
requiredForToolCall: true,
description: 'Firecrawl API key'
},
url: {
+1
View File
@@ -36,6 +36,7 @@ export const repoInfoTool: ToolConfig<RepoInfoParams, RepoInfoResponse> = {
},
apiKey: {
type: 'string',
requiredForToolCall: true,
description: 'GitHub Personal Access Token'
}
},
+1
View File
@@ -36,6 +36,7 @@ export const contactsTool: ToolConfig<ContactsParams, ContactsResponse> = {
apiKey: {
type: 'string',
required: true,
requiredForToolCall: true,
description: 'HubSpot API key'
},
email: {
+1
View File
@@ -37,6 +37,7 @@ export const opportunitiesTool: ToolConfig<OpportunityParams, OpportunityRespons
apiKey: {
type: 'string',
required: true,
requiredForToolCall: true,
description: 'Salesforce API key'
},
action: {
+1
View File
@@ -23,6 +23,7 @@ export const slackMessageTool: ToolConfig<SlackMessageParams, SlackMessageRespon
apiKey: {
type: 'string',
required: true,
requiredForToolCall: true,
description: 'Your Slack API token'
},
channel: {
+2 -1
View File
@@ -9,7 +9,7 @@ export interface ToolResponse {
export interface ToolConfig<P = any, R extends ToolResponse = ToolResponse> {
// Basic tool identification
id: string
name: string
name: string
description: string
version: string
@@ -17,6 +17,7 @@ export interface ToolConfig<P = any, R extends ToolResponse = ToolResponse> {
params: Record<string, {
type: string
required?: boolean
requiredForToolCall?: boolean
default?: any
description?: string
}>