| Name | Type | Description |
|---|---|---|
agent_name* | str | Name of the agent |
agent_resource_role_arn* | str | The Amazon Resource Name (ARN) of the IAM role with permissions to invoke API operations on the agent. |
foundation_model* | str | The foundation model to be used for orchestration by the agent you create |
instruction* | str | Instructions that tell the agent what it should do and how it should interact with users |
tools | List[BaseTool] | Default: [] |
client_token | Optional[str] | Default: None |
customer_encryption_key_arn | Optional[str] | Default: None |
description | Optional[str] | Default: None |
guardrail_configuration | Optional[GuardrailConfiguration] | Default: None |
idle_session_ttl_in_seconds | Optional[int] | Default: None |
credentials_profile_name | Optional[str] | Default: None |
region_name | Optional[str] | Default: None |
bedrock_endpoint_url | Optional[str] | Default: None |
runtime_endpoint_url | Optional[str] | Default: None |
enable_trace | Optional[bool] | Default: False |
enable_human_input | Optional[bool] | Default: False |
enable_code_interpreter | Optional[bool] | Default: False |
**kwargs | Any | Default: {} |
Creates a Bedrock Agent Runnable that can be used with an AgentExecutor or with LangGraph.
This also sets up the Bedrock agent, actions and action groups infrastructure if they don't exist, ensures the agent is in PREPARED state so that it is ready to be called.
Returns: BedrockAgentsRunnable configured to invoke the Bedrock agent
List of tools. Accepts LangChain's BaseTool format
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error
The Amazon Resource Name (ARN) of the KMS key with which to encrypt the agent
A description of the agent
The unique Guardrail configuration assigned to the agent when it is created.
The number of seconds for which Amazon Bedrock keeps information about a user's conversation with the agent. A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout
The profile name to use if different from default
Region for the Bedrock agent
Endpoint URL for bedrock agent
Endpoint URL for bedrock agent runtime
Boolean flag to specify whether trace should be enabled when invoking the agent
Boolean flag to specify whether a human as a tool should be enabled for the agent.
Boolean flag to specify whether a code interpreter
Additional arguments