createBridge
createBridge(
__namedParameters):object
Defined in: bridge/src/index.ts:305
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”agents
Section titled “agents”object[]
decide
Section titled “decide”Decide
harnesses
Section titled “harnesses”Record<string, Harness>
jwtSecret
Section titled “jwtSecret”string
liveUrl
Section titled “liveUrl”string
logger
Section titled “logger”memoryRoot?
Section titled “memoryRoot?”string
queues?
Section titled “queues?”Map<string, Promise<void>> = ...
Returns
Section titled “Returns”object
callTool()
Section titled “callTool()”callTool(
__namedParameters):Promise<{ok:boolean;text:string; }>
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”agentId
Section titled “agentId”string
unknown
chatDoc
Section titled “chatDoc”string
string
workspaceId
Section titled “workspaceId”string
Returns
Section titled “Returns”Promise<{ ok: boolean; text: string; }>
onTurn()
Section titled “onTurn()”onTurn(
turn):Promise<void>
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<void>
post()
Section titled “post()”post(
__namedParameters):Promise<void>
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”{ access: "write" | "suggest"; harness: string; id: string; instructions: string; memoryDir?: string; model?: string; name: string; role: string; tags: string[]; voice: { id?: string; speed: number; }; }
agent.access
Section titled “agent.access”"write" | "suggest" = ...
agent.harness
Section titled “agent.harness”string = ...
agent.id
Section titled “agent.id”string = ...
agent.instructions
Section titled “agent.instructions”string = ...
agent.memoryDir?
Section titled “agent.memoryDir?”string = ...
agent.model?
Section titled “agent.model?”string = ...
agent.name
Section titled “agent.name”string = ...
agent.role
Section titled “agent.role”string = ...
agent.tags
Section titled “agent.tags”string[] = ...
agent.voice
Section titled “agent.voice”{ id?: string; speed: number; } = ...
agent.voice.id?
Section titled “agent.voice.id?”string = ...
agent.voice.speed
Section titled “agent.voice.speed”number = ...
chatDoc
Section titled “chatDoc”string
string
workspaceId
Section titled “workspaceId”string
Returns
Section titled “Returns”Promise<void>
work()
Section titled “work()”work(
__namedParameters):Promise<string>
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”{ access: "write" | "suggest"; harness: string; id: string; instructions: string; memoryDir?: string; model?: string; name: string; role: string; tags: string[]; voice: { id?: string; speed: number; }; }
agent.access
Section titled “agent.access”"write" | "suggest" = ...
agent.harness
Section titled “agent.harness”string = ...
agent.id
Section titled “agent.id”string = ...
agent.instructions
Section titled “agent.instructions”string = ...
agent.memoryDir?
Section titled “agent.memoryDir?”string = ...
agent.model?
Section titled “agent.model?”string = ...
agent.name
Section titled “agent.name”string = ...
agent.role
Section titled “agent.role”string = ...
agent.tags
Section titled “agent.tags”string[] = ...
agent.voice
Section titled “agent.voice”{ id?: string; speed: number; } = ...
agent.voice.id?
Section titled “agent.voice.id?”string = ...
agent.voice.speed
Section titled “agent.voice.speed”number = ...
chatDoc
Section titled “chatDoc”string
string
workspaceId
Section titled “workspaceId”string
Returns
Section titled “Returns”Promise<string>