Module Awso_bedrock_agent_runtime.ValuesSource

Sourceval service : Awso.Service.t
Sourceval apiVersion : string
Sourceval endpointPrefix : string
Sourceval serviceFullName : string
Sourceval signatureVersion : string
Sourceval protocol : string
Sourceval globalEndpoint : string
Sourceval simple_to_json : ('a -> Awso__Botodata.value) -> 'a -> Yojson.Safe.t
Sourceval composed_to_json : ('a -> Awso__Botodata.value) -> 'a -> Yojson.Safe.t
Sourceval to_query : ('a -> Awso.Client.Query.value) -> 'a -> Awso.Client.Query.t
Sourceval structure_to_value_aux : ('a * 'b option) list -> f:(('a * 'b) list -> 'c) -> [> `Structure of 'c ]
Sourceval structure_to_value : ('a * 'b option) list -> [> `Structure of ('a * 'b) list ]
Sourceval structure_to_wrapped_value : wrapper:'a -> response:'a -> ('b * 'c option) list -> [> `Structure of ('a * [> `Structure of ('b * 'c) list ]) list ]
Sourcemodule S3ObjectKey : sig ... end
Sourcemodule S3BucketName : sig ... end
Sourcemodule S3Identifier : sig ... end

The identifier information for an Amazon S3 bucket.

Sourcemodule Payload : sig ... end
Sourcemodule APISchema : sig ... end

Contains details about the OpenAPI schema for the action group. For more information, see Action group OpenAPI schemas. You can either include the schema directly in the payload field or you can upload it to an S3 bucket and specify the S3 bucket location in the s3 field.

Sourcemodule AWSResourceARN : sig ... end
Sourcemodule NonBlankString : sig ... end
Sourcemodule AccessDeniedException : sig ... end

The request is denied because of missing access permissions. Check your permissions and retry your request.

Sourcemodule LambdaResourceArn : sig ... end
Sourcemodule CustomControlMethod : sig ... end
Sourcemodule ActionGroupExecutor : sig ... end

Contains details about the Lambda function containing the business logic that is carried out upon invoking the action or the custom control method for handling the information elicited from the user.

Sourcemodule Verb : sig ... end
Sourcemodule String_ : sig ... end
Sourcemodule Parameter : sig ... end

A parameter for the API request or function.

Sourcemodule Parameters : sig ... end
Sourcemodule ContentMap : sig ... end
Sourcemodule RequestBody : sig ... end

The parameters in the API request body.

Sourcemodule Function : sig ... end
Sourcemodule ExecutionType : sig ... end
Sourcemodule ApiPath : sig ... end
Sourcemodule ActionGroupName : sig ... end

Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace in the Amazon Bedrock User Guide.

Sourcemodule Integer : sig ... end
Sourcemodule Usage : sig ... end

Contains information of the usage of the foundation model.

Sourcemodule Long : sig ... end
Sourcemodule Metadata : sig ... end

Provides information about the execution process for different types of invocations, such as model invocation, knowledge base invocation, agent collaborator invocation, guardrail invocation, and code interpreter Invocation.

Sourcemodule ActionGroupOutputString : sig ... end

Contains the JSON-formatted string returned by the API invoked by the action group.

Sourcemodule ActionGroupSignature : sig ... end
Sourcemodule ActionInvocationType : sig ... end
Sourcemodule ResourceName : sig ... end
Sourcemodule ResourceDescription : sig ... end

/ @documentation("Description of the using the resource.")

Sourcemodule RequireConfirmation : sig ... end
Sourcemodule ParameterName : sig ... end
Sourcemodule ParameterType : sig ... end
Sourcemodule ParameterDescription : sig ... end
Sourcemodule Boolean : sig ... end
Sourcemodule ParameterDetail : sig ... end

Contains details about a parameter in a function for an action group.

Sourcemodule ParameterMap : sig ... end
Sourcemodule FunctionDescription : sig ... end
Sourcemodule FunctionDefinition : sig ... end

Defines parameters that the agent needs to invoke from the user to complete the function. Corresponds to an action in an action group.

Sourcemodule Functions : sig ... end
Sourcemodule FunctionSchema : sig ... end

Contains details about the function schema for the action group or the JSON or YAML-formatted payload defining the schema.

Sourcemodule AgentActionGroup : sig ... end

Contains details of the inline agent's action group.

Sourcemodule AgentActionGroups : sig ... end
Sourcemodule AgentAliasArn : sig ... end
Sourcemodule AgentAliasId : sig ... end
Sourcemodule AgentCollaboration : sig ... end
Sourcemodule ResponseState : sig ... end
Sourcemodule ImageInputSourceBytesBlob : sig ... end
Sourcemodule ImageInputSource : sig ... end

Details about the source of an input image in the result from a function in the action group invocation.

Sourcemodule ImageInputFormat : sig ... end
Sourcemodule ImageInput : sig ... end

Details about an image in the result from a function in the action group invocation. You can specify images only when the function is a computer use action. For more information, see Configure an Amazon Bedrock Agent to complete tasks with computer use tools.

Sourcemodule ImageInputs : sig ... end
Sourcemodule ContentBody : sig ... end

Contains the body of the API response. This data type is used in the following API operations: In the returnControlInvocationResults field of the InvokeAgent request

Sourcemodule ResponseBody : sig ... end
Sourcemodule ConfirmationState : sig ... end
Sourcemodule FunctionResult : sig ... end

Contains information about the function that was called from the action group and the response that was returned. This data type is used in the following API operations: In the returnControlInvocationResults of the InvokeAgent request

Sourcemodule ApiResult : sig ... end

Contains information about the API operation that was called from the action group and the response body that was returned. This data type is used in the following API operations: In the returnControlInvocationResults of the InvokeAgent request

Sourcemodule InvocationResultMember : sig ... end

A result from the invocation of an action. For more information, see Return control to the agent developer and Control session context. This data type is used in the following API operations: InvokeAgent request

Sourcemodule ReturnControlResults : sig ... end

An action invocation result.

Sourcemodule PayloadType : sig ... end

Input for an agent collaborator. The input can be text or an action invocation result.

An agent collaborator invocation input.

Sourcemodule Name : sig ... end
Sourcemodule FunctionParameter : sig ... end

Contains information about a parameter of the function. This data type is used in the following API operations: In the returnControl field of the InvokeAgent response

Sourcemodule FunctionParameters : sig ... end
Sourcemodule FunctionInvocationInput : sig ... end

Contains information about the function that the agent predicts should be called. This data type is used in the following API operations: In the returnControl field of the InvokeAgent response

Sourcemodule ParameterList : sig ... end
Sourcemodule PropertyParameters : sig ... end

Contains the parameters in the request body.

Sourcemodule ApiContentMap : sig ... end
Sourcemodule ApiRequestBody : sig ... end

The request body to provide for the API request, as the agent elicited from the user. This data type is used in the following API operations: InvokeAgent response

Sourcemodule ApiParameter : sig ... end

Information about a parameter to provide to the API request. This data type is used in the following API operations: InvokeAgent response

Sourcemodule ApiParameters : sig ... end
Sourcemodule ApiInvocationInput : sig ... end

Contains information about the API operation that the agent predicts should be called. This data type is used in the following API operations: In the returnControl field of the InvokeAgent response

Sourcemodule InvocationInputMember : sig ... end

Contains details about the API operation or function that the agent predicts should be called. This data type is used in the following API operations: In the returnControl field of the InvokeAgent response

Sourcemodule InvocationInputs : sig ... end
Sourcemodule ReturnControlPayload : sig ... end

Contains information to return from the action group that the agent has predicted to invoke. This data type is used in the following API operations: InvokeAgent response

Output from an agent collaborator. The output can be text or an action invocation result.

Output from an agent collaborator.

Sourcemodule AgentId : sig ... end
Sourcemodule TraceId : sig ... end
Sourcemodule RawResponse : sig ... end

Contains the raw output from the foundation model.

Invocation output from a routing classifier model.

Sourcemodule Type : sig ... end
Sourcemodule Source : sig ... end
Sourcemodule RepromptResponse : sig ... end

Contains details about the agent's response to reprompt the input.

Sourcemodule RetrievalResultMetadata : sig ... end

The web URL/URLs data source location.

Contains information about the SQL query used to retrieve the result.

The SharePoint data source location.

The Salesforce data source location.

Sourcemodule RetrievalResultS3Location : sig ... end

The S3 data source location. This data type is used in the following API operations: Retrieve response – in the s3Location field RetrieveAndGenerate response – in the s3Location field InvokeAgent response – in the s3Location field

The location of a result in Amazon Kendra.

Contains information about the location of a document in a custom data source.

The Confluence data source location.

Sourcemodule RetrievalResultLocation : sig ... end

Contains information about the data source location. This data type is used in the following API operations: Retrieve response – in the location field RetrieveAndGenerate response – in the location field InvokeAgent response – in the location field

Sourcemodule VideoSegmentS3UriString : sig ... end
Sourcemodule VideoSegment : sig ... end

Contains information about a video segment retrieved from a knowledge base, including its location and summary. This data type is used in the following API operations: Retrieve response – in the video field

Contains information about a column with a cell to return in retrieval.

Sourcemodule RetrievalResultContentRow : sig ... end
Sourcemodule AudioSegmentS3UriString : sig ... end
Sourcemodule AudioSegment : sig ... end

Contains information about an audio segment retrieved from a knowledge base, including its location and transcription. This data type is used in the following API operations: Retrieve response – in the audio field

Sourcemodule RetrievalResultContent : sig ... end

Contains information about a chunk of text from a data source in the knowledge base. If the result is from a structured data source, the cell in the database and the type of the value is also identified. This data type is used in the following API operations: Retrieve response – in the content field RetrieveAndGenerate response – in the content field InvokeAgent response – in the content field

Sourcemodule RetrievedReference : sig ... end

Contains metadata about a source cited for the generated response. This data type is used in the following API operations: RetrieveAndGenerate response – in the retrievedReferences field InvokeAgent response – in the retrievedReferences field

Sourcemodule RetrievedReferences : sig ... end
Sourcemodule KnowledgeBaseLookupOutput : sig ... end

Contains details about the results from looking up the knowledge base.

Sourcemodule FinalResponseString : sig ... end
Sourcemodule FinalResponse : sig ... end

Contains details about the response to the user.

Sourcemodule Files : sig ... end

Contains the JSON-formatted string returned by the API invoked by the code interpreter.

Sourcemodule Observation : sig ... end

Contains the result or output of an action group or knowledge base, or the response to the user.

Sourcemodule PromptType : sig ... end
Sourcemodule PromptText : sig ... end
Sourcemodule ModelIdentifier : sig ... end
Sourcemodule LambdaArn : sig ... end
Sourcemodule TopP : sig ... end
Sourcemodule TopK : sig ... end
Sourcemodule Temperature : sig ... end
Sourcemodule StopSequences : sig ... end
Sourcemodule MaximumLength : sig ... end
Sourcemodule InferenceConfiguration : sig ... end

Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models.

Sourcemodule CreationMode : sig ... end
Sourcemodule ModelInvocationInput : sig ... end

The input for the pre-processing step. The type matches the agent step. The text contains the prompt. The inferenceConfiguration, parserMode, and overrideLambda values are set in the PromptOverrideConfiguration object that was set when the agent was created or updated.

Sourcemodule TraceKnowledgeBaseId : sig ... end
Sourcemodule KnowledgeBaseLookupInput : sig ... end

Contains details about the knowledge base to look up and the query to be made.

Sourcemodule InvocationType : sig ... end

Contains information about the code interpreter being invoked.

Sourcemodule InvocationInput : sig ... end

Contains information pertaining to the action group or knowledge base that is being invoked.

Sourcemodule RoutingClassifierTrace : sig ... end

A trace for a routing classifier.

Sourcemodule ReasoningTextBlock : sig ... end

Contains information about the reasoning that the model used to return the content in the content block.

Sourcemodule Blob : sig ... end
Sourcemodule ReasoningContentBlock : sig ... end

Contains content regarding the reasoning that the foundation model made with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.

Sourcemodule RationaleString : sig ... end

Details about the response from the Lambda parsing of the output from the pre-processing step.

The foundation model output from the pre-processing step.

Sourcemodule PreProcessingTrace : sig ... end

Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.

Sourcemodule OutputString : sig ... end

Details about the response from the Lambda parsing of the output from the post-processing step.

The foundation model output from the post-processing step.

Sourcemodule PostProcessingTrace : sig ... end

Details about the post-processing step, in which the agent shapes the response.

Sourcemodule Rationale : sig ... end

Contains the reasoning, based on the input, that the agent uses to justify carrying out an action group or getting information from a knowledge base.

The foundation model output from the orchestration step.

Sourcemodule OrchestrationTrace : sig ... end

Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.

Sourcemodule GuardrailWordPolicyAction : sig ... end
Sourcemodule GuardrailManagedWordType : sig ... end
Sourcemodule GuardrailManagedWord : sig ... end

The managed word details for the filter in the Guardrail.

Sourcemodule GuardrailManagedWordList : sig ... end
Sourcemodule GuardrailCustomWord : sig ... end

The custom word details for the filter in the Guardrail.

Sourcemodule GuardrailCustomWordList : sig ... end

The assessment details for words defined in the Guardrail filter.

Sourcemodule GuardrailTopicType : sig ... end
Sourcemodule GuardrailTopic : sig ... end

The details for a specific topic defined in the Guardrail.

Sourcemodule GuardrailTopicList : sig ... end

The details of the policy assessment used in the Guardrail.

Sourcemodule GuardrailRegexFilter : sig ... end

The details for the regex filter used in the Guardrail.

Sourcemodule GuardrailRegexFilterList : sig ... end
Sourcemodule GuardrailPiiEntityType : sig ... end
Sourcemodule GuardrailPiiEntityFilter : sig ... end

The Guardrail filter to identify and remove personally identifiable information (PII).

The details of the sensitive policy assessment used in the Guardrail.

Sourcemodule GuardrailContentFilter : sig ... end

Details of the content filter used in the Guardrail.

The details of the policy assessment in the Guardrails filter.

Sourcemodule GuardrailAssessment : sig ... end

Assessment details of the content analyzed by Guardrails.

Sourcemodule GuardrailAssessmentList : sig ... end
Sourcemodule GuardrailAction : sig ... end
Sourcemodule GuardrailTrace : sig ... end

The trace details used in the Guardrail.

Sourcemodule FailureReasonString : sig ... end
Sourcemodule FailureTrace : sig ... end

Contains information about the failure of the interaction.

The event in the custom orchestration sequence. Events are the responses which the custom orchestration Lambda function sends as response to the agent.

Sourcemodule CustomOrchestrationTrace : sig ... end

The trace behavior for the custom orchestration.

Sourcemodule Trace : sig ... end

Contains one part of the agent's reasoning process and results from calling API actions and querying knowledge bases. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.

Sourcemodule SessionId : sig ... end
Sourcemodule Caller : sig ... end

Details about a caller.

Sourcemodule CallerChain : sig ... end
Sourcemodule AgentVersion : sig ... end
Sourcemodule TracePart : sig ... end

Contains information about the agent and session, alongside the agent's reasoning process and results from calling API actions and querying knowledge bases and metadata about the trace. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.

Sourcemodule AgentTraces : sig ... end
Sourcemodule AnalyzePromptEvent : sig ... end

An event in which the prompt was analyzed in preparation for optimization.

Sourcemodule AttributeType : sig ... end
Sourcemodule SpanStartInteger : sig ... end
Sourcemodule SpanEndInteger : sig ... end
Sourcemodule Span : sig ... end

Contains information about where the text with a citation begins and ends in the generated output. This data type is used in the following API operations: RetrieveAndGenerate response – in the span field InvokeAgent response – in the span field

Sourcemodule TextResponsePart : sig ... end

Contains the part of the generated text that contains a citation, alongside where it begins and ends. This data type is used in the following API operations: RetrieveAndGenerate response – in the textResponsePart field InvokeAgent response – in the textResponsePart field

Sourcemodule GeneratedResponsePart : sig ... end

Contains metadata about a part of the generated response that is accompanied by a citation. This data type is used in the following API operations: InvokeAgent response – in the generatedResponsePart field RetrieveAndGenerate response – in the generatedResponsePart field

Sourcemodule Citation : sig ... end

An object containing a segment of the generated response that is based on a source in the knowledge base, alongside information about the source. This data type is used in the following API operations: InvokeAgent response – in the citations field RetrieveAndGenerate response – in the citations field

Sourcemodule Citations : sig ... end
Sourcemodule Attribution : sig ... end

Contains citations for a part of an agent response.

Sourcemodule BadGatewayException : sig ... end

There was an issue with a dependency due to a server issue. Retry your request.

Sourcemodule BasePromptTemplate : sig ... end
Sourcemodule BedrockModelArn : sig ... end
Sourcemodule PerformanceConfigLatency : sig ... end
Sourcemodule PerformanceConfiguration : sig ... end

Performance settings for a model.

Settings for a model called with InvokeAgent.

Contains configurations for a reranker model.

Contains configurations for an Amazon Bedrock reranker model.

Sourcemodule BedrockRerankingModelArn : sig ... end
Sourcemodule S3Uri : sig ... end
Sourcemodule S3Location : sig ... end

Information about the Amazon S3 bucket where the image is stored.

Sourcemodule ImageSourceBytesBlob : sig ... end
Sourcemodule ImageSource : sig ... end

The source for an image.

Sourcemodule ImageFormat : sig ... end
Sourcemodule ImageBlock : sig ... end

Image content for an invocation step.

A block of content that you pass to, or receive from, a Amazon Bedrock session in an invocation step. You pass the content to a session in the payLoad of the PutInvocationStep API operation. You retrieve the content with the GetInvocationStep API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule ByteContentBlob : sig ... end
Sourcemodule Identifier : sig ... end
Sourcemodule ContentType : sig ... end
Sourcemodule ByteContentDoc : sig ... end

This property contains the document to chat with, along with its attributes.

Sourcemodule MimeType : sig ... end
Sourcemodule ByteContentFile : sig ... end

The property contains the file to chat with, along with its attributes.

Sourcemodule CitationEvent : sig ... end

A citation event.

Sourcemodule CollaborationInstruction : sig ... end
Sourcemodule SessionTTL : sig ... end
Sourcemodule PromptState : sig ... end
Sourcemodule Document : sig ... end
Sourcemodule PromptConfiguration : sig ... end

Contains configurations to override a prompt template in one part of an agent sequence. For more information, see Advanced prompts.

Sourcemodule PromptConfigurations : sig ... end

Contains configurations to override prompts in different parts of an agent sequence. For more information, see Advanced prompts.

Contains configurations for an Amazon Bedrock reranker model.

Sourcemodule FieldForReranking : sig ... end

Contains information for a metadata field to include in or exclude from consideration when reranking.

Sourcemodule FieldsForReranking : sig ... end

Contains configurations for the metadata fields to include or exclude when considering reranking. If you include the fieldsToExclude field, the reranker ignores all the metadata fields that you specify. If you include the fieldsToInclude field, the reranker uses only the metadata fields that you specify and ignores all others. You can include only one of these fields.

Contains configurations for the metadata to use in reranking.

Contains configurations for reranking with an Amazon Bedrock reranker model.

Contains configurations for reranking the retrieved results.

Sourcemodule SearchType : sig ... end
Sourcemodule FilterValue : sig ... end
Sourcemodule FilterKey : sig ... end
Sourcemodule FilterAttribute : sig ... end

Specifies the name that the metadata attribute must match and the value to which to compare the value of the metadata attribute. For more information, see Query configurations. This data type is used in the following API operations: RetrieveAndGenerate request

module RetrievalFilter : sig ... end

Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see Query configurations. See the examples below to see how to use these filters. This data type is used in the following API operations: Retrieve request – in the filter field RetrieveAndGenerate request – in the filter field

module RetrievalFilterList : sig ... end
Sourcemodule MetadataAttributeSchema : sig ... end

Details about a metadata attribute.

Settings for implicit filtering, where a model generates a metadata filter based on the prompt.

Configurations for how to perform the search query and return results. For more information, see Query configurations. This data type is used in the following API operations: Retrieve request – in the vectorSearchConfiguration field RetrieveAndGenerate request – in the vectorSearchConfiguration field

Contains configurations for knowledge base query. For more information, see Query configurations. This data type is used in the following API operations: Retrieve request – in the retrievalConfiguration field RetrieveAndGenerate request – in the retrievalConfiguration field

Sourcemodule KnowledgeBaseId : sig ... end
Sourcemodule KnowledgeBase : sig ... end

Details of the knowledge base associated withe inline agent.

Sourcemodule KnowledgeBases : sig ... end
Sourcemodule KmsKeyArn : sig ... end
Sourcemodule Instruction : sig ... end
Sourcemodule GuardrailVersion : sig ... end

The configuration details for the guardrail.

Sourcemodule RelayConversationHistory : sig ... end
Sourcemodule CollaboratorConfiguration : sig ... end

Settings of an inline collaborator agent.

Sourcemodule Collaborator : sig ... end

List of inline collaborators.

Sourcemodule Collaborators : sig ... end
Sourcemodule SatisfiedCondition : sig ... end

Represents a condition that was satisfied during a condition node evaluation in a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule SatisfiedConditions : sig ... end
Sourcemodule NodeName : sig ... end
Sourcemodule DateTimestamp : sig ... end

Time Stamp.

Sourcemodule ConditionResultEvent : sig ... end

Contains information about a condition evaluation result during a flow execution. This event is generated when a condition node in the flow evaluates its conditions. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule ConflictException : sig ... end

There was a conflict performing an operation. Resolve the conflict and retry your request.

Sourcemodule ContentBlock : sig ... end

A content block.

Sourcemodule ContentBlocks : sig ... end
Sourcemodule ConversationRole : sig ... end
Sourcemodule Message : sig ... end

Details about a message.

Sourcemodule Messages : sig ... end
Sourcemodule ConversationHistory : sig ... end

A conversation history.

Sourcemodule Uuid : sig ... end
Sourcemodule SessionIdentifier : sig ... end
Sourcemodule InvocationDescription : sig ... end
Sourcemodule CreateInvocationRequest : sig ... end

Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from a conversation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions. Related APIs ListInvocations ListSessions GetSession

Sourcemodule ValidationException : sig ... end

Input validation failed. Check your request parameters and retry the request.

Sourcemodule ThrottlingException : sig ... end

The number of requests exceeds the limit. Resubmit your request later.

The number of requests exceeds the service quota. Resubmit your request later.

Sourcemodule ResourceNotFoundException : sig ... end

The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.

Sourcemodule InternalServerException : sig ... end

An internal server error occurred. Retry your request.

Sourcemodule CreateInvocationResponse : sig ... end

Creates a new invocation within a session. An invocation groups the related invocation steps that store the content from a conversation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions. Related APIs ListInvocations ListSessions GetSession

Sourcemodule TagValue : sig ... end

Value of a tag

Sourcemodule TagKey : sig ... end

Key of a tag

Sourcemodule TagsMap : sig ... end
Sourcemodule SessionMetadataValue : sig ... end
Sourcemodule SessionMetadataKey : sig ... end
Sourcemodule SessionMetadataMap : sig ... end
Sourcemodule CreateSessionRequest : sig ... end

Creates a session to temporarily store conversations for generative AI (GenAI) applications built with open-source frameworks such as LangGraph and LlamaIndex. Sessions enable you to save the state of conversations at checkpoints, with the added security and infrastructure of Amazon Web Services. For more information, see Store and retrieve conversation history and context with Amazon Bedrock sessions. By default, Amazon Bedrock uses Amazon Web Services-managed keys for session encryption, including session metadata, or you can use your own KMS key. For more information, see Amazon Bedrock session encryption. You use a session to store state and conversation history for generative AI applications built with open-source frameworks. For Amazon Bedrock Agents, the service automatically manages conversation context and associates them with the agent-specific sessionId you specify in the InvokeAgent API operation. Related APIs: ListSessions GetSession EndSession DeleteSession

Sourcemodule SessionStatus : sig ... end
Sourcemodule SessionArn : sig ... end
Sourcemodule CreateSessionResponse : sig ... end

Creates a session to temporarily store conversations for generative AI (GenAI) applications built with open-source frameworks such as LangGraph and LlamaIndex. Sessions enable you to save the state of conversations at checkpoints, with the added security and infrastructure of Amazon Web Services. For more information, see Store and retrieve conversation history and context with Amazon Bedrock sessions. By default, Amazon Bedrock uses Amazon Web Services-managed keys for session encryption, including session metadata, or you can use your own KMS key. For more information, see Amazon Bedrock session encryption. You use a session to store state and conversation history for generative AI applications built with open-source frameworks. For Amazon Bedrock Agents, the service automatically manages conversation context and associates them with the agent-specific sessionId you specify in the InvokeAgent API operation. Related APIs: ListSessions GetSession EndSession DeleteSession

Sourcemodule OrchestrationExecutor : sig ... end

The structure of the executor invoking the actions in custom orchestration.

Sourcemodule CustomOrchestration : sig ... end

Contains details of the custom orchestration configured for the agent.

Sourcemodule MemoryId : sig ... end
Sourcemodule DeleteAgentMemoryRequest : sig ... end

Deletes memory from the specified memory identifier.

Sourcemodule DependencyFailedException : sig ... end

There was an issue with a dependency. Check the resource configurations and retry the request.

Sourcemodule DeleteAgentMemoryResponse : sig ... end

Deletes memory from the specified memory identifier.

Sourcemodule DeleteSessionRequest : sig ... end

Deletes a session that you ended. You can't delete a session with an ACTIVE status. To delete an active session, you must first end it with the EndSession API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule DeleteSessionResponse : sig ... end

Deletes a session that you ended. You can't delete a session with an ACTIVE status. To delete an active session, you must first end it with the EndSession API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule Double : sig ... end
Sourcemodule EndSessionRequest : sig ... end

Ends the session. After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule EndSessionResponse : sig ... end

Ends the session. After you end a session, you can still access its content but you can’t add to it. To delete the session and it's content, you use the DeleteSession API operation. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule S3ObjectDoc : sig ... end

The unique wrapper object of the document from the S3 location.

Sourcemodule ExternalSourceType : sig ... end
Sourcemodule ExternalSource : sig ... end

The unique external source of the content contained in the wrapper object.

Sourcemodule ExternalSources : sig ... end
Sourcemodule TextPromptTemplate : sig ... end
Sourcemodule PromptTemplate : sig ... end

Contains the template for the prompt that's sent to the model for response generation. For more information, see Knowledge base prompt templates. This data type is used in the following API operations: RetrieveAndGenerate request – in the filter field

Sourcemodule RAGStopSequences : sig ... end
Sourcemodule MaxTokens : sig ... end
Sourcemodule TextInferenceConfig : sig ... end

Configuration settings for text generation using a language model via the RetrieveAndGenerate operation. Includes parameters like temperature, top-p, maximum token count, and stop sequences. The valid range of maxTokens depends on the accepted values for your chosen model's inference parameters. To see the inference parameters for your model, see Inference parameters for foundation models.

Sourcemodule InferenceConfig : sig ... end

The configuration for inference settings when generating responses using RetrieveAndGenerate.

Sourcemodule GuardrailConfiguration : sig ... end

The configuration details for the guardrail.

Contains the generation configuration of the external source wrapper object.

The configurations of the external source wrapper object in the retrieveAndGenerate function.

Sourcemodule FileBody : sig ... end
Sourcemodule OutputFile : sig ... end

Contains details of the response from code interpreter.

Sourcemodule OutputFiles : sig ... end
Sourcemodule FilePart : sig ... end

Contains intermediate response for code interpreter if any files have been generated.

Sourcemodule S3ObjectFile : sig ... end

Contains details of the s3 object where the source file is located.

Sourcemodule FileSourceType : sig ... end
Sourcemodule FileSource : sig ... end

The source file of the content contained in the wrapper object.

Sourcemodule FileUseCase : sig ... end
Sourcemodule Float_ : sig ... end
Sourcemodule FlowAliasIdentifier : sig ... end
Sourcemodule FlowCompletionReason : sig ... end
Sourcemodule FlowCompletionEvent : sig ... end

Contains information about why a flow completed.

Sourcemodule FlowControlNodeType : sig ... end
Sourcemodule FlowErrorCode : sig ... end
Sourcemodule FlowExecutionContent : sig ... end

Contains the content of an flow execution input or output field. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowExecutionErrorType : sig ... end
Sourcemodule FlowExecutionError : sig ... end

Contains information about an error that occurred during an flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowExecutionErrors : sig ... end
Sourcemodule FlowNodeInputName : sig ... end
Sourcemodule NodeOutputNext : sig ... end

Represents the next node that receives output data.

Sourcemodule NodeOutputNextList : sig ... end
Sourcemodule NodeOutputName : sig ... end
Sourcemodule NodeExecutionContent : sig ... end

Contains the content of a flow node's input or output field for a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowNodeIODataType : sig ... end
Sourcemodule NodeOutputField : sig ... end

Represents an output field produced by a node during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule NodeOutputFields : sig ... end
Sourcemodule NodeOutputEvent : sig ... end

Contains information about the outputs produced by a specific node during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowNodeOutputName : sig ... end
Sourcemodule FlowNodeInputExpression : sig ... end
Sourcemodule NodeInputSource : sig ... end

Represents the source of input data for a node field.

Sourcemodule NodeInputName : sig ... end

Represents an item in the execution chain for node input tracking.

Sourcemodule NodeInputExecutionChain : sig ... end
Sourcemodule FlowNodeInputCategory : sig ... end
Sourcemodule NodeInputField : sig ... end

Represents an input field provided to a node during a flow execution.

Sourcemodule NodeInputFields : sig ... end
Sourcemodule NodeInputEvent : sig ... end

Contains information about the inputs provided to a specific node during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule NodeErrorCode : sig ... end
Sourcemodule NodeFailureEvent : sig ... end

Contains information about a failure that occurred at a specific node during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule NodeTraceElements : sig ... end

Contains trace elements for node execution tracking.

Sourcemodule NodeDependencyEvent : sig ... end

Contains information about an internal trace of a specific node during execution.

Sourcemodule NodeActionEvent : sig ... end

Contains information about an action (operation) called by a node during execution.

Sourcemodule FlowFailureEvent : sig ... end

Contains information about a failure that occurred at the flow level during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowOutputField : sig ... end

Represents an output field produced by a flow during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowOutputFields : sig ... end
Sourcemodule FlowExecutionOutputEvent : sig ... end

Contains information about the outputs produced by the flow during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowInputField : sig ... end

Represents an input field provided to a flow during a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowInputFields : sig ... end
Sourcemodule FlowExecutionInputEvent : sig ... end

Contains information about the inputs provided to the flow at the start of a flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowExecutionEvent : sig ... end

Represents an event that occurred during an flow execution. This is a union type that can contain one of several event types, such as node input and output events; flow input and output events; condition node result events, or failure events. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowExecutionEventType : sig ... end
Sourcemodule FlowExecutionEvents : sig ... end
Sourcemodule FlowExecutionId : sig ... end
Sourcemodule FlowExecutionIdentifier : sig ... end
Sourcemodule FlowExecutionName : sig ... end
Sourcemodule FlowExecutionRoleArn : sig ... end
Sourcemodule FlowExecutionStatus : sig ... end
Sourcemodule Version : sig ... end
Sourcemodule FlowIdentifier : sig ... end
Sourcemodule FlowExecutionSummary : sig ... end

Contains summary information about a flow execution, including its status, timestamps, and identifiers. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule FlowExecutionSummaries : sig ... end
Sourcemodule FlowInputContent : sig ... end

Contains information about an input into the flow.

Sourcemodule FlowInput : sig ... end

Contains information about an input into the prompt flow and where to send it.

Sourcemodule FlowInputs : sig ... end
Sourcemodule FlowMultiTurnInputContent : sig ... end

The content structure containing input information for multi-turn flow interactions.

Sourcemodule NodeType : sig ... end

Response object from the flow multi-turn node requesting additional information.

Sourcemodule FlowOutputContent : sig ... end

Contains information about the content in an output from prompt flow invocation.

Sourcemodule FlowOutputEvent : sig ... end

Contains information about an output from prompt flow invoction.

Sourcemodule FlowTraceNodeOutputNext : sig ... end

Represents the next node that receives output data from a flow trace.

Contains the content of the node output. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceNodeOutputField : sig ... end

Contains information about a field in the output from a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceNodeOutputFields : sig ... end
Sourcemodule FlowTraceNodeOutputEvent : sig ... end

Contains information about the output from a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceNodeInputSource : sig ... end

Represents the source of input data for a flow trace node field.

Represents an item in the execution chain for flow trace node input tracking.

Sourcemodule FlowTraceNodeInputContent : sig ... end

Contains the content of the node input. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceNodeInputField : sig ... end

Contains information about a field in the input into a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceNodeInputFields : sig ... end
Sourcemodule FlowTraceNodeInputEvent : sig ... end

Contains information about the input into a node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceNodeActionEvent : sig ... end

Contains information about an action (operation) called by a node in an Amazon Bedrock flow. The service generates action events for calls made by prompt nodes, agent nodes, and Amazon Web Services Lambda nodes.

Sourcemodule TraceElements : sig ... end

Contains trace elements for flow execution tracking.

Sourcemodule FlowTraceDependencyEvent : sig ... end

Contains information about a dependency trace event in the flow.

Sourcemodule FlowTraceCondition : sig ... end

Contains information about a condition that was satisfied. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceConditions : sig ... end

Contains information about an output from a condition node. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTrace : sig ... end

Contains information about an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowTraceEvent : sig ... end

Contains information about a trace, which tracks an input or output for a node in the flow. For more information, see Track each step in your prompt flow by viewing its trace in Amazon Bedrock.

Sourcemodule FlowResponseStream : sig ... end

The output of the flow.

Sourcemodule KnowledgeBaseArn : sig ... end

Contains configurations for a knowledge base to use in transformation.

Sourcemodule TextToSqlConfiguration : sig ... end

Contains configurations for transforming text to SQL.

Sourcemodule QueryTransformationMode : sig ... end

Contains configurations for transforming the natural language query into SQL.

Sourcemodule InputQueryType : sig ... end
Sourcemodule QueryGenerationInput : sig ... end

Contains information about a natural language query to transform into SQL.

Sourcemodule GenerateQueryRequest : sig ... end

Generates an SQL query from a natural language query. For more information, see Generate a query for structured data in the Amazon Bedrock User Guide.

Sourcemodule GeneratedQueryType : sig ... end
Sourcemodule GeneratedQuery : sig ... end

Contains information about a query generated for a natural language query.

Sourcemodule GeneratedQueries : sig ... end
Sourcemodule GenerateQueryResponse : sig ... end

Generates an SQL query from a natural language query. For more information, see Generate a query for structured data in the Amazon Bedrock User Guide.

Sourcemodule GenerationConfiguration : sig ... end

Contains configurations for response generation based on the knowledge base query results. This data type is used in the following API operations: RetrieveAndGenerate request

Sourcemodule NextToken : sig ... end
Sourcemodule MemoryType : sig ... end
Sourcemodule MaxResults : sig ... end

Max Results.

Sourcemodule GetAgentMemoryRequest : sig ... end

Gets the sessions stored in the memory of the agent.

Sourcemodule SummaryText : sig ... end
Sourcemodule MemorySessionSummary : sig ... end

Contains details of a session summary.

Sourcemodule Memory : sig ... end

Contains sessions summaries.

Sourcemodule Memories : sig ... end
Sourcemodule GetAgentMemoryResponse : sig ... end

Gets the sessions stored in the memory of the agent.

Retrieves the flow definition snapshot used for a flow execution. The snapshot represents the flow metadata and definition as it existed at the time the execution was started. Note that even if the flow is edited after an execution starts, the snapshot connected to the execution remains unchanged. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Retrieves the flow definition snapshot used for a flow execution. The snapshot represents the flow metadata and definition as it existed at the time the execution was started. Note that even if the flow is edited after an execution starts, the snapshot connected to the execution remains unchanged. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule GetFlowExecutionRequest : sig ... end

Retrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution.

Sourcemodule GetFlowExecutionResponse : sig ... end

Retrieves details about a specific flow execution, including its status, start and end times, and any errors that occurred during execution.

Sourcemodule InvocationIdentifier : sig ... end
Sourcemodule GetInvocationStepRequest : sig ... end

Retrieves the details of a specific invocation step within an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule InvocationStepPayload : sig ... end

Payload content, such as text and images, for the invocation step.

Sourcemodule InvocationStep : sig ... end

Stores fine-grained state checkpoints, including text and images, for each interaction in an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule GetInvocationStepResponse : sig ... end

Retrieves the details of a specific invocation step within an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule GetSessionRequest : sig ... end

Retrieves details about a specific session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule GetSessionResponse : sig ... end

Retrieves details about a specific session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule GuadrailAction : sig ... end
Sourcemodule GuardrailEvent : sig ... end

A guardrail event.

Sourcemodule InlineAgentFilePart : sig ... end

Contains intermediate response for code interpreter if any files have been generated.

Sourcemodule PartBody : sig ... end
Sourcemodule InlineAgentPayloadPart : sig ... end

Contains a part of an agent response and citations for it.

Sourcemodule InlineAgentTracePart : sig ... end

Contains information about the agent and session, alongside the agent's reasoning process and results from calling API actions and querying knowledge bases and metadata about the trace. You can use the trace to understand how the agent arrived at the response it provided the customer. For more information, see Trace enablement.

Contains information to return from the action group that the agent has predicted to invoke. This data type is used in the InvokeAgent response API operation.

Sourcemodule InlineAgentResponseStream : sig ... end

The response from invoking the agent and associated citations and trace information.

Settings for a model called with InvokeInlineAgent.

Sourcemodule SessionAttributesMap : sig ... end
Sourcemodule InputFile : sig ... end

Contains details of the source files.

Sourcemodule InputFiles : sig ... end
Sourcemodule InlineSessionState : sig ... end

Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeInlineAgent request. Use session state attributes to control and provide conversational context for your inline agent and to help customize your agent's behavior. For more information, see Control session context

Sourcemodule InputImageFormat : sig ... end
Sourcemodule InputImage : sig ... end

Contains the image data for multimodal knowledge base queries, including format and content. This data type is used in the following API operations: Retrieve request – in the image field

Sourcemodule TextPromptTextString : sig ... end
Sourcemodule TextPrompt : sig ... end

Contains information about the text prompt to optimize.

Sourcemodule InputPrompt : sig ... end

Contains information about the prompt to optimize.

Sourcemodule InputText : sig ... end
Sourcemodule InvocationStepSummary : sig ... end

Contains details about an invocation step within an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule InvocationStepSummaries : sig ... end
Sourcemodule InvocationSummary : sig ... end

Contains details about an invocation in a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule InvocationSummaries : sig ... end
Sourcemodule StreamingConfigurations : sig ... end

Configurations for streaming.

Configurations to apply to a knowledge base attached to the agent during query. For more information, see Knowledge base retrieval configurations.

Sourcemodule SessionState : sig ... end

Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a Lambda function for an action group or pass them when making an InvokeAgent request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see Control session context.

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

Sourcemodule InvokeAgentRequest : sig ... end

Sends a prompt for the agent to process and respond to. Note the following fields for the request: To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. The response contains both chunk and trace attributes. The final response is returned in the bytes field of the chunk object. The InvokeAgent returns one chunk for the entire interaction. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the returnControl field. Errors are also surfaced in the response.

Sourcemodule PayloadPart : sig ... end

Contains a part of an agent response and citations for it.

Sourcemodule ModelNotReadyException : sig ... end

The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see Retry behavior in the AWS SDKs and Tools reference guide.

Sourcemodule ResponseStream : sig ... end

The response from invoking the agent and associated citations and trace information.

Sourcemodule InvokeAgentResponse : sig ... end

Sends a prompt for the agent to process and respond to. Note the following fields for the request: To continue the same conversation with an agent, use the same sessionId value in the request. To activate trace enablement, turn enableTrace to true. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see Trace enablement. End a conversation by setting endSession to true. In the sessionState object, you can include attributes for the session or prompt or, if you configured an action group to return control, results from invocation of the action group. The response contains both chunk and trace attributes. The final response is returned in the bytes field of the chunk object. The InvokeAgent returns one chunk for the entire interaction. The attribution object contains citations for parts of the response. If you set enableTrace to true in the request, you can trace the agent's steps and reasoning process that led it to the response. If the action predicted was configured to return control, the response returns parameters for the action, elicited from the user, in the returnControl field. Errors are also surfaced in the response.

The performance configuration for a model called with InvokeFlow.

Sourcemodule InvokeFlowRequest : sig ... end

Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide. The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.

Sourcemodule InvokeFlowResponse : sig ... end

Invokes an alias of a flow to run the inputs that you specify and return the output of each node as a stream. If there's an error, the error is returned. For more information, see Test a flow in Amazon Bedrock in the Amazon Bedrock User Guide. The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeFlow.

Sourcemodule OrchestrationType : sig ... end
Sourcemodule InvokeInlineAgentRequest : sig ... end

Invokes an inline Amazon Bedrock agent using the configurations you provide with the request. Specify the following fields for security purposes. (Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent. (Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session. To override the default prompt behavior for agent orchestration and to use advanced prompts, include a promptOverrideConfiguration object. For more information, see Advanced prompts. The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.

Sourcemodule InvokeInlineAgentResponse : sig ... end

Invokes an inline Amazon Bedrock agent using the configurations you provide with the request. Specify the following fields for security purposes. (Optional) customerEncryptionKeyArn – The Amazon Resource Name (ARN) of a KMS key to encrypt the creation of the agent. (Optional) idleSessionTTLinSeconds – Specify the number of seconds for which the agent should maintain session information. After this time expires, the subsequent InvokeInlineAgent request begins a new session. To override the default prompt behavior for agent orchestration and to use advanced prompts, include a promptOverrideConfiguration object. For more information, see Advanced prompts. The agent instructions will not be honored if your agent has only one knowledge base, uses default prompts, has no action group, and user input is disabled.

Sourcemodule KnowledgeBaseQueryType : sig ... end
Sourcemodule KnowledgeBaseQuery : sig ... end

Contains the query made to the knowledge base. This data type is used in the following API operations: Retrieve request – in the retrievalQuery field

Details about a result from querying the knowledge base. This data type is used in the following API operations: Retrieve response – in the retrievalResults field

Sourcemodule QueryTransformationType : sig ... end

To split up the prompt and retrieve multiple sources, set the transformation type to QUERY_DECOMPOSITION.

Settings for how the model processes the prompt prior to retrieval and generation.

Contains details about the resource being queried. This data type is used in the following API operations: Retrieve request – in the knowledgeBaseConfiguration field RetrieveAndGenerate request – in the knowledgeBaseConfiguration field

Lists events that occurred during a flow execution. Events provide detailed information about the execution progress, including node inputs and outputs, flow inputs and outputs, condition results, and failure events. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Lists events that occurred during a flow execution. Events provide detailed information about the execution progress, including node inputs and outputs, flow inputs and outputs, condition results, and failure events. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule ListFlowExecutionsRequest : sig ... end

Lists all executions of a flow. Results can be paginated and include summary information about each execution, such as status, start and end times, and the execution's Amazon Resource Name (ARN). Flow executions is in preview release for Amazon Bedrock and is subject to change.

Lists all executions of a flow. Results can be paginated and include summary information about each execution, such as status, start and end times, and the execution's Amazon Resource Name (ARN). Flow executions is in preview release for Amazon Bedrock and is subject to change.

Lists all invocation steps associated with a session and optionally, an invocation within the session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Lists all invocation steps associated with a session and optionally, an invocation within the session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule ListInvocationsRequest : sig ... end

Lists all invocations associated with a specific session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule ListInvocationsResponse : sig ... end

Lists all invocations associated with a specific session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule ListSessionsRequest : sig ... end

Lists all sessions in your Amazon Web Services account. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule SessionSummary : sig ... end

Contains details about a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule SessionSummaries : sig ... end
Sourcemodule ListSessionsResponse : sig ... end

Lists all sessions in your Amazon Web Services account. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule TaggableResourcesArn : sig ... end

ARN of Taggable resources: [session]

List all the tags for the resource you specify.

List all the tags for the resource you specify.

Sourcemodule OptimizePromptRequest : sig ... end

Optimizes a prompt for the task that you specify. For more information, see Optimize a prompt in the Amazon Bedrock User Guide.

Sourcemodule OptimizedPrompt : sig ... end

Contains information about the optimized prompt.

Sourcemodule OptimizedPromptEvent : sig ... end

An event in which the prompt was optimized.

Sourcemodule OptimizedPromptStream : sig ... end

The stream containing events in the prompt optimization process.

Sourcemodule OptimizePromptResponse : sig ... end

Optimizes a prompt for the task that you specify. For more information, see Optimize a prompt in the Amazon Bedrock User Guide.

Sourcemodule PutInvocationStepRequest : sig ... end

Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions. Related APIs: GetInvocationStep ListInvocationSteps ListInvocations ListSessions

Sourcemodule PutInvocationStepResponse : sig ... end

Add an invocation step to an invocation in a session. An invocation step stores fine-grained state checkpoints, including text and images, for each interaction. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions. Related APIs: GetInvocationStep ListInvocationSteps ListInvocations ListSessions

Sourcemodule RerankTextDocument : sig ... end

Contains information about a text document to rerank.

Sourcemodule RerankDocumentType : sig ... end
Sourcemodule RerankDocument : sig ... end

Contains information about a document to rerank. Choose the type to define and include the field that corresponds to the type.

Sourcemodule RerankQueryContentType : sig ... end
Sourcemodule RerankQuery : sig ... end

Contains information about a query to submit to the reranker model.

Sourcemodule RerankQueriesList : sig ... end
Sourcemodule RerankingConfiguration : sig ... end

Contains configurations for reranking.

Sourcemodule RerankSourceType : sig ... end
Sourcemodule RerankSource : sig ... end

Contains information about a source for reranking.

Sourcemodule RerankSourcesList : sig ... end
Sourcemodule RerankRequest : sig ... end

Reranks the relevance of sources based on queries. For more information, see Improve the relevance of query responses with a reranker model.

Sourcemodule RerankResultIndexInteger : sig ... end
Sourcemodule RerankResult : sig ... end

Contains information about a document that was reranked.

Sourcemodule RerankResultsList : sig ... end
Sourcemodule RerankResponse : sig ... end

Reranks the relevance of sources based on queries. For more information, see Improve the relevance of query responses with a reranker model.

Sourcemodule RetrieveAndGenerateType : sig ... end

Contains details about the resource being queried. This data type is used in the following API operations: RetrieveAndGenerate request – in the retrieveAndGenerateConfiguration field

Sourcemodule RetrieveAndGenerateInput : sig ... end

Contains the query made to the knowledge base. This data type is used in the following API operations: RetrieveAndGenerate request – in the input field

Sourcemodule RetrieveAndGenerateOutput : sig ... end

Contains the response generated from querying the knowledge base. This data type is used in the following API operations: RetrieveAndGenerate response – in the output field

A retrieve and generate output event.

Contains configuration about the session with the knowledge base. This data type is used in the following API operations: RetrieveAndGenerate request – in the sessionConfiguration field

Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile. The response only cites sources that are relevant to the query.

Queries a knowledge base and generates responses based on the retrieved results and using the specified foundation model or inference profile. The response only cites sources that are relevant to the query.

Queries a knowledge base and generates responses based on the retrieved results, with output in streaming format. The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeModelWithResponseStream. This operation requires permission for the bedrock:RetrieveAndGenerate action.

A retrieve and generate stream response output.

Queries a knowledge base and generates responses based on the retrieved results, with output in streaming format. The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeModelWithResponseStream. This operation requires permission for the bedrock:RetrieveAndGenerate action.

Sourcemodule RetrieveRequest : sig ... end

Queries a knowledge base and retrieves information from it.

Sourcemodule RetrieveResponse : sig ... end

Queries a knowledge base and retrieves information from it.

Sourcemodule StartFlowExecutionRequest : sig ... end

Starts an execution of an Amazon Bedrock flow. Unlike flows that run until completion or time out after five minutes, flow executions let you run flows asynchronously for longer durations. Flow executions also yield control so that your application can perform other tasks. This operation returns an Amazon Resource Name (ARN) that you can use to track and manage your flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Starts an execution of an Amazon Bedrock flow. Unlike flows that run until completion or time out after five minutes, flow executions let you run flows asynchronously for longer durations. Flow executions also yield control so that your application can perform other tasks. This operation returns an Amazon Resource Name (ARN) that you can use to track and manage your flow execution. Flow executions is in preview release for Amazon Bedrock and is subject to change.

Sourcemodule StopFlowExecutionRequest : sig ... end

Stops an Amazon Bedrock flow's execution. This operation prevents further processing of the flow and changes the execution status to Aborted.

Sourcemodule StopFlowExecutionResponse : sig ... end

Stops an Amazon Bedrock flow's execution. This operation prevents further processing of the flow and changes the execution status to Aborted.

Sourcemodule TagKeyList : sig ... end
Sourcemodule TagResourceRequest : sig ... end

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

Sourcemodule TagResourceResponse : sig ... end

Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.

Sourcemodule UntagResourceRequest : sig ... end

Remove tags from a resource.

Sourcemodule UntagResourceResponse : sig ... end

Remove tags from a resource.

Sourcemodule UpdateSessionRequest : sig ... end

Updates the metadata or encryption settings of a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.

Sourcemodule UpdateSessionResponse : sig ... end

Updates the metadata or encryption settings of a session. For more information about sessions, see Store and retrieve conversation history and context with Amazon Bedrock sessions.