agentID
(string): Unique identifier for the agentagentName
(string): Name of the agent to invokesecure
(bool): Whether to use secure connection (HTTPS/TLS)host
(string): Server hostname or IP addressport
(int): Server port number*Client
: Configured client instanceerror
: Error if client creation failsctx
(context.Context): Context for request timeout and cancellationparams
(map[string]interface): Parameters to pass to the agentinterface{}
: Result from the agent executionerror
: Error if execution failsctx
(context.Context): Context for request timeout and cancellationparams
(map[string]interface): Parameters to pass to the agent*Stream
: Stream instance for reading streaming responseserror
: Error if stream creation failsStream
type provides methods for reading streaming responses:
Next
: Returns the next data chunk, a boolean indicating if more data is available, and any errorClose
: Closes the stream and releases resourcesmessage
(string): The message to send to the agentmax_turns
(int): Maximum number of conversation turnsprompt
(string): The prompt or question for the assistant