http.Handler, making it compatible with Go’s standard net/http package.
Creating an HTTP Server
Pass the SDK client directly tohttp.ListenAndServe:
Invoking an Agent
Send a POST request tohttp://localhost:8070/?agent=<agent-name> with the request body as agents.AgentInput:
Request Structure
The request body follows theagents.AgentInput structure:
Namespace- Optional. Namespace for conversation isolationPreviousMessageID- Optional. Previous message ID for conversation historyMessages- Required. Array of input messagesRunContext- Optional. Additional context for the execution