MCPcopy Index your code
hub / github.com/simstudioai/sim / agentToolConfig

Function agentToolConfig

apps/sim/lib/workspaces/fork/copy/cleanup-failed.test.ts:114–119  ·  view source on GitHub ↗
(type: string)

Source from the content-addressed store, hash-verified

112
113/** An agent block whose `tools` tool-input holds a KB tool with a nested `knowledgeBaseId` param. */
114const agentToolConfig = (type: string): BlockConfig => {
115 if (type === 'agent') return blockWith([{ id: 'tools', title: 'Tools', type: 'tool-input' }])
116 if (type === 'kbtool')
117 return blockWith([{ id: 'knowledgeBaseId', title: 'KB', type: 'knowledge-base-selector' }])
118 return undefined as unknown as BlockConfig
119}
120
121/** A deployment-version state whose agent block references `kbId` inside a tool-input tool param. */
122const agentVersionState = (kbId: string) => ({

Callers 1

Calls 1

blockWithFunction · 0.70

Tested by

no test coverage detected