mirror of
https://github.com/simstudioai/sim.git
synced 2026-09-24 15:45:35 +08:00
Added tool UI to agent
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -41,6 +41,7 @@ export const scrapeTool: ToolConfig<ScrapeParams, ScrapeResponse> = {
|
||||
apiKey: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
requiredForToolCall: true,
|
||||
description: 'Firecrawl API key'
|
||||
},
|
||||
url: {
|
||||
|
||||
@@ -36,6 +36,7 @@ export const repoInfoTool: ToolConfig<RepoInfoParams, RepoInfoResponse> = {
|
||||
},
|
||||
apiKey: {
|
||||
type: 'string',
|
||||
requiredForToolCall: true,
|
||||
description: 'GitHub Personal Access Token'
|
||||
}
|
||||
},
|
||||
|
||||
@@ -36,6 +36,7 @@ export const contactsTool: ToolConfig<ContactsParams, ContactsResponse> = {
|
||||
apiKey: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
requiredForToolCall: true,
|
||||
description: 'HubSpot API key'
|
||||
},
|
||||
email: {
|
||||
|
||||
@@ -37,6 +37,7 @@ export const opportunitiesTool: ToolConfig<OpportunityParams, OpportunityRespons
|
||||
apiKey: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
requiredForToolCall: true,
|
||||
description: 'Salesforce API key'
|
||||
},
|
||||
action: {
|
||||
|
||||
@@ -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
@@ -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
|
||||
}>
|
||||
|
||||
Reference in New Issue
Block a user