Package bedrockagentruntime provides the API client, operations, and parameter types for Agents for Amazon Bedrock Runtime.
def call_invoke_agent_api(prompt: str, chat_session_id: str): bedrock_agent_runtime_client = boto3.client("bedrock-agent-runtime", region_name="us-east-1") agent_response = bedrock_agent_runtime_client.invoke_agent( agentId=***, agentAliasId=***, inputText=prompt, sessionId=chat_se...
gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rb Defined Under Namespace Classes:APISchema,AccessDeniedException,ActionGroupExecutor,ActionGroupInvocationInput,ActionGroupInvocationOutput,AgentActionGroup,AgentCollaboratorInputPayload,AgentCollaboratorInvocationInput,AgentCollaboratorInvocationOu...
InvokeInlineAgent </summary> [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agent-runtime/command/InvokeInlineAgentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agent-runtime/Interface/Inv...
Description copied from interface:AWSBedrockAgentRuntime Deletes memory from the specified memory identifier. Specified by: deleteAgentMemoryin interfaceAWSBedrockAgentRuntime Returns: Result of the DeleteAgentMemory operation returned by the service. ...
Interface for accessing Agents for Amazon Bedrock Runtime. Note:Do not directly implement this interface, new methods are added to it regularly. Extend fromAbstractAWSBedrockAgentRuntimeinstead. Contains APIs related to model invocation and querying of knowledge bases. ...
importuuidimportboto3fromtypingimportDict,Listdefcall_invoke_agent_api(prompt:str,chat_session_id:str):bedrock_agent_runtime_client=boto3.client("bedrock-agent-runtime",region_name="us-east-1")agent_response=bedrock_agent_runtime_client.invoke_agent(agentId=***,agentAliasId=***,inputText=prom...
Defined in: gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/event_streams.rbInstance Method Summary collapse #initialize ⇒ ResponseStream constructor A new instance of ResponseStream. #on_access_denied_exception_event(&block) ⇒ Object #on_bad_gateway_exception_event...
com.amazonaws.services.bedrockagentruntime.model.AWSBedrockAgentRuntimeException All Implemented Interfaces: Serializable Direct Known Subclasses: AccessDeniedException,BadGatewayException,ConflictException,DependencyFailedException,InternalServerException,ResourceNotFoundException,ServiceQu...
Defined in: gems/aws-sdk-bedrockagentruntime/lib/aws-sdk-bedrockagentruntime/types.rbOverview Configurations to apply to a knowledge base attached to the agent during query. For more information, see Knowledge base retrieval configurations.See...