bedrockagentruntime_invoke_agent: Amazon Bedrock Agents (now Amazon Bedrock Agents Classic) is...

View source: R/bedrockagentruntime_operations.R

bedrockagentruntime_invoke_agentR Documentation

Amazon Bedrock Agents (now Amazon Bedrock Agents Classic) is no longer open to new customers

Description

Amazon Bedrock Agents (now Amazon Bedrock Agents Classic) is no longer open to new customers. For capabilities similar to Bedrock Agents Classic, explore Amazon Bedrock AgentCore. Existing customers can continue to use the service as normal. For more information, see Amazon Bedrock Agents Classic availability change.

See https://www.paws-r-sdk.com/docs/bedrockagentruntime_invoke_agent/ for full documentation.

Usage

bedrockagentruntime_invoke_agent(
  agentAliasId,
  agentId,
  bedrockModelConfigurations = NULL,
  enableTrace = NULL,
  endSession = NULL,
  inputText = NULL,
  memoryId = NULL,
  promptCreationConfigurations = NULL,
  sessionId,
  sessionState = NULL,
  sourceArn = NULL,
  streamingConfigurations = NULL
)

Arguments

agentAliasId

[required] The alias of the agent to use.

agentId

[required] The unique identifier of the agent to use.

bedrockModelConfigurations

Model performance settings for the request.

enableTrace

Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see Trace enablement.

endSession

Specifies whether to end the session with the agent or not.

inputText

The prompt text to send the agent.

If you include returnControlInvocationResults in the sessionState field, the inputText field will be ignored.

memoryId

The unique identifier of the agent memory.

promptCreationConfigurations

Specifies parameters that control how the service populates the agent prompt for an invoke_agent 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.

sessionId

[required] The unique identifier of the session. Use the same value across requests to continue the same conversation.

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.

sourceArn

The ARN of the resource making the request.

streamingConfigurations

Specifies the configurations for streaming.

To use agent streaming, you need permissions to perform the bedrock:InvokeModelWithResponseStream action.


paws.machine.learning documentation built on Oct. 8, 2026, 9:06 a.m.