Sends a prompt for the agent to process and respond to. Note the following fields for the request:
See https://www.paws-r-sdk.com/docs/bedrockagentruntime_invoke_agent/ for full documentation.
bedrockagentruntime_invoke_agent(
agentAliasId,
agentId,
bedrockModelConfigurations = NULL,
enableTrace = NULL,
endSession = NULL,
inputText = NULL,
memoryId = NULL,
sessionId,
sessionState = NULL,
sourceArn = NULL,
streamingConfigurations = NULL
)
[required] The alias of the agent to use.
[required] The unique identifier of the agent to use.
Model performance settings for the request.
Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Trace enablement.
Specifies whether to end the session with the agent or not.
The prompt text to send the agent.
If you include returnControlInvocationResults
in the sessionState
field, the inputText
field will be ignored.
The unique identifier of the agent memory.
[required] The unique identifier of the session. Use the same value across requests to continue the same conversation.
Contains parameters that specify various attributes of the session. For more information, see Control session context.
If you include returnControlInvocationResults
in the sessionState
field, the inputText
field will be ignored.
The ARN of the resource making the request.
Specifies the configurations for streaming.
To use agent streaming, you need permissions to perform the
bedrock:InvokeModelWithResponseStream
action.