UseVercelAIOptions
Agent Runtimes / hooks/useVercelAI / UseVercelAIOptions
Interface: UseVercelAIOptions
Defined in: hooks/useVercelAI.tsx:16
Properties
agentId?
optionalagentId?:string
Defined in: hooks/useVercelAI.tsx:24
Agent ID to use (default: 'demo-agent')
baseUrl?
optionalbaseUrl?:string
Defined in: hooks/useVercelAI.tsx:20
Base URL for the Vercel AI endpoint (e.g., http://localhost:8000).
onMessageReceived?
optionalonMessageReceived?: (message) =>void
Defined in: hooks/useVercelAI.tsx:32
Callback when a message is received
Parameters
message
Returns
void
onMessageSent?
optionalonMessageSent?: (content) =>void
Defined in: hooks/useVercelAI.tsx:28
Callback when a message is sent
Parameters
content
string
Returns
void