InvokeAgentRequest
¶
Source code in docs_src/capo_bedrock_agent_runtime/types/invoke_agent_request.py
bedrock_model_configurations
instance-attribute
¶
bedrock_model_configurations: NotRequired[BedrockModelConfigurations]
Model performance settings for the request.
enable_trace
instance-attribute
¶
enable_trace: NotRequired[bool]
Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Trace enablement.
end_session
instance-attribute
¶
end_session: NotRequired[bool]
Specifies whether to end the session with the agent or not.
input_text
instance-attribute
¶
input_text: NotRequired[InputText]
The prompt text to send the agent.
If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.
memory_id
instance-attribute
¶
memory_id: NotRequired[MemoryId]
The unique identifier of the agent memory.
prompt_creation_configurations
instance-attribute
¶
prompt_creation_configurations: NotRequired[PromptCreationConfigurations]
Specifies parameters that control how the service populates the agent prompt for an InvokeAgent request. You can control which aspects of previous invocations in the same agent session the service uses to populate the agent prompt. This gives you more granular control over the contextual history that is used to process the current request.
session_id
instance-attribute
¶
session_id: SessionId
The unique identifier of the session. Use the same value across requests to continue the same conversation.
session_state
instance-attribute
¶
session_state: NotRequired[SessionState]
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.
source_arn
instance-attribute
¶
source_arn: NotRequired[AWSResourceARN]
The ARN of the resource making the request.
streaming_configurations
instance-attribute
¶
streaming_configurations: NotRequired[StreamingConfigurations]
Specifies the configurations for streaming.
To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.