{ "version": "2.0", "service": "

Amazon Bedrock Agent

", "operations": { "InvokeAgent": "

Invokes the specified Bedrock model to run inference using the input provided in the request body.

", "Retrieve": "

Retrieve from knowledge base.

", "RetrieveAndGenerate": "

RetrieveAndGenerate API

" }, "shapes": { "AccessDeniedException": { "base": "

This exception is thrown when a request is denied per access permissions

", "refs": { "ResponseStream$accessDeniedException": null } }, "ActionGroupInvocationInput": { "base": "

input to lambda used in action group

", "refs": { "InvocationInput$actionGroupInvocationInput": null } }, "ActionGroupInvocationOutput": { "base": "

output from lambda used in action group

", "refs": { "Observation$actionGroupInvocationOutput": null } }, "ActionGroupName": { "base": "

Agent Trace Action Group Name

", "refs": { "ActionGroupInvocationInput$actionGroupName": null } }, "ActionGroupOutputString": { "base": "

Agent Trace Action Group Lambda Invocation Output String

", "refs": { "ActionGroupInvocationOutput$text": null } }, "AgentAliasId": { "base": "

Identifier of the agent alias.

", "refs": { "InvokeAgentRequest$agentAliasId": "

Identifier for Agent Alias

", "TracePart$agentAliasId": null } }, "AgentId": { "base": "

Identifier of the agent.

", "refs": { "InvokeAgentRequest$agentId": "

Identifier for Agent

", "TracePart$agentId": null } }, "ApiPath": { "base": "

Agent Trace Action Group API path

", "refs": { "ActionGroupInvocationInput$apiPath": null } }, "Attribution": { "base": "

Citations associated with final agent response

", "refs": { "PayloadPart$attribution": null } }, "BadGatewayException": { "base": "

This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource

", "refs": { "ResponseStream$badGatewayException": null } }, "BedrockModelArn": { "base": "

Arn of a Bedrock model.

", "refs": { "KnowledgeBaseRetrieveAndGenerateConfiguration$modelArn": null } }, "Boolean": { "base": null, "refs": { "InvokeAgentRequest$endSession": "

End current session

", "InvokeAgentRequest$enableTrace": "

Enable agent trace events for improved debugging

", "PreProcessingParsedResponse$isValid": "

Boolean value

" } }, "Citation": { "base": "

Citation associated with the agent response

", "refs": { "Citations$member": null } }, "Citations": { "base": "

List of citations

", "refs": { "Attribution$citations": null, "RetrieveAndGenerateResponse$citations": null } }, "ConflictException": { "base": "

This exception is thrown when there is a conflict performing an operation

", "refs": { "ResponseStream$conflictException": null } }, "ContentMap": { "base": "

Content type paramter map

", "refs": { "RequestBody$content": null } }, "CreationMode": { "base": "

indicates if agent uses default prompt or overriden prompt

", "refs": { "ModelInvocationInput$promptCreationMode": null, "ModelInvocationInput$parserMode": null } }, "DependencyFailedException": { "base": "

This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to a customer fault (i.e. bad configuration)

", "refs": { "ResponseStream$dependencyFailedException": null } }, "Double": { "base": null, "refs": { "KnowledgeBaseRetrievalResult$score": "

The relevance score of a result.

" } }, "FailureReasonString": { "base": "

Agent Trace Failed Reason String

", "refs": { "FailureTrace$failureReason": null } }, "FailureTrace": { "base": "

Trace Part which is emitted when agent trace could not be generated

", "refs": { "Trace$failureTrace": null } }, "FinalResponse": { "base": "

Agent finish output

", "refs": { "Observation$finalResponse": null } }, "FinalResponseString": { "base": "

Agent Trace Action Group Lambda Invocation Output String

", "refs": { "FinalResponse$text": null } }, "GeneratedResponsePart": { "base": "

Generate response part

", "refs": { "Citation$generatedResponsePart": null } }, "InferenceConfiguration": { "base": "

Configurations for controlling the inference response of an InvokeAgent API call

", "refs": { "ModelInvocationInput$inferenceConfiguration": null } }, "InputText": { "base": "

Model text input

", "refs": { "InvokeAgentRequest$inputText": "

Input data in the format specified in the Content-Type request header.

" } }, "InternalServerException": { "base": "

This exception is thrown if there was an unexpected error during processing of request

", "refs": { "ResponseStream$internalServerException": null } }, "InvocationInput": { "base": "

Trace Part which contains input details for action group or knowledge base

", "refs": { "OrchestrationTrace$invocationInput": null } }, "InvocationType": { "base": "

types of invocations

", "refs": { "InvocationInput$invocationType": null } }, "InvokeAgentRequest": { "base": "

InvokeAgent Request

", "refs": { } }, "InvokeAgentResponse": { "base": "

InvokeAgent Response

", "refs": { } }, "KmsKeyArn": { "base": "

A KMS key ARN

", "refs": { "RetrieveAndGenerateSessionConfiguration$kmsKeyArn": "

The KMS key arn to encrypt the customer data of the session.

" } }, "KnowledgeBaseId": { "base": "

Identifier of the KnowledgeBase

", "refs": { "KnowledgeBaseRetrieveAndGenerateConfiguration$knowledgeBaseId": null, "RetrieveRequest$knowledgeBaseId": null } }, "KnowledgeBaseLookupInput": { "base": "

Input to lambda used in action group

", "refs": { "InvocationInput$knowledgeBaseLookupInput": null } }, "KnowledgeBaseLookupInputString": { "base": "

Agent Trace Action Group Lambda Invocation Output String

", "refs": { "KnowledgeBaseLookupInput$text": null } }, "KnowledgeBaseLookupOutput": { "base": "

Input to lambda used in action group

", "refs": { "Observation$knowledgeBaseLookupOutput": null } }, "KnowledgeBaseQuery": { "base": "

Knowledge base input query.

", "refs": { "RetrieveRequest$retrievalQuery": null } }, "KnowledgeBaseQueryTextString": { "base": null, "refs": { "KnowledgeBaseQuery$text": "

Knowledge base input query in text

" } }, "KnowledgeBaseRetrievalConfiguration": { "base": "

Search parameters for retrieving from knowledge base.

", "refs": { "RetrieveRequest$retrievalConfiguration": null } }, "KnowledgeBaseRetrievalResult": { "base": "

Result item returned from a knowledge base retrieval.

", "refs": { "KnowledgeBaseRetrievalResults$member": null } }, "KnowledgeBaseRetrievalResults": { "base": "

List of knowledge base retrieval results

", "refs": { "RetrieveResponse$retrievalResults": null } }, "KnowledgeBaseRetrieveAndGenerateConfiguration": { "base": "

Configurations for retrieval and generation for knowledge base.

", "refs": { "RetrieveAndGenerateConfiguration$knowledgeBaseConfiguration": null } }, "KnowledgeBaseVectorSearchConfiguration": { "base": "

Knowledge base vector search configuration

", "refs": { "KnowledgeBaseRetrievalConfiguration$vectorSearchConfiguration": null } }, "KnowledgeBaseVectorSearchConfigurationNumberOfResultsInteger": { "base": null, "refs": { "KnowledgeBaseVectorSearchConfiguration$numberOfResults": "

Top-K results to retrieve from knowledge base.

" } }, "LambdaArn": { "base": "

ARN of a Lambda.

", "refs": { "ModelInvocationInput$overrideLambda": null } }, "MaximumLength": { "base": "

Maximum length of output

", "refs": { "InferenceConfiguration$maximumLength": null } }, "MimeType": { "base": "

Content type of the request

", "refs": { "InvokeAgentResponse$contentType": "

streaming response mimetype of the model

" } }, "ModelInvocationInput": { "base": "

Trace Part which contains information used to call Invoke Model

", "refs": { "OrchestrationTrace$modelInvocationInput": null, "PostProcessingTrace$modelInvocationInput": null, "PreProcessingTrace$modelInvocationInput": null } }, "NextToken": { "base": "

Opaque continuation token of previous paginated response.

", "refs": { "RetrieveRequest$nextToken": null, "RetrieveResponse$nextToken": null } }, "NonBlankString": { "base": "

Non Blank String

", "refs": { "AccessDeniedException$message": null, "BadGatewayException$message": null, "BadGatewayException$resourceName": null, "ConflictException$message": null, "DependencyFailedException$message": null, "DependencyFailedException$resourceName": null, "InternalServerException$message": null, "ResourceNotFoundException$message": null, "ServiceQuotaExceededException$message": null, "ThrottlingException$message": null, "ValidationException$message": null } }, "Observation": { "base": "

Trace Part which contains output details for action group or knowledge base or final response

", "refs": { "OrchestrationTrace$observation": null } }, "OrchestrationTrace": { "base": "

Trace contains intermidate response during orchestration

", "refs": { "Trace$orchestrationTrace": null } }, "OutputString": { "base": "

Agent Trace Output String

", "refs": { "PostProcessingParsedResponse$text": null } }, "Parameter": { "base": "

parameters included in action group invocation

", "refs": { "Parameters$member": null } }, "Parameters": { "base": "

list of parameters included in action group invocation

", "refs": { "ActionGroupInvocationInput$parameters": null, "ContentMap$value": null } }, "PartBody": { "base": "

PartBody of the payload in bytes

", "refs": { "PayloadPart$bytes": null } }, "PayloadPart": { "base": "

Base 64 endoded byte response

", "refs": { "ResponseStream$chunk": null } }, "PostProcessingModelInvocationOutput": { "base": "

Trace Part which contains information related to postprocessing

", "refs": { "PostProcessingTrace$modelInvocationOutput": null } }, "PostProcessingParsedResponse": { "base": "

Trace Part which contains information if preprocessing was successful

", "refs": { "PostProcessingModelInvocationOutput$parsedResponse": null } }, "PostProcessingTrace": { "base": "

Trace Part which contains information related to post processing step

", "refs": { "Trace$postProcessingTrace": null } }, "PreProcessingModelInvocationOutput": { "base": "

Trace Part which contains information related to preprocessing

", "refs": { "PreProcessingTrace$modelInvocationOutput": null } }, "PreProcessingParsedResponse": { "base": "

Trace Part which contains information if preprocessing was successful

", "refs": { "PreProcessingModelInvocationOutput$parsedResponse": null } }, "PreProcessingTrace": { "base": "

Trace Part which contains information related to preprocessing step

", "refs": { "Trace$preProcessingTrace": null } }, "PromptSessionAttributesMap": { "base": "

Session attributes that go to the prompt

", "refs": { "SessionState$promptSessionAttributes": "

Prompt Session Attributes

" } }, "PromptText": { "base": "

Prompt Message

", "refs": { "ModelInvocationInput$text": null } }, "PromptType": { "base": "

types of prompts

", "refs": { "ModelInvocationInput$type": null } }, "Rationale": { "base": "

Trace Part which contains information related to reasoning

", "refs": { "OrchestrationTrace$rationale": null } }, "RationaleString": { "base": "

Agent Trace Rationale String

", "refs": { "PreProcessingParsedResponse$rationale": null, "Rationale$text": null } }, "RepromptResponse": { "base": "

Observation information if there were reprompts

", "refs": { "Observation$repromptResponse": null } }, "RequestBody": { "base": "

Request Body Content Map

", "refs": { "ActionGroupInvocationInput$requestBody": null } }, "ResourceNotFoundException": { "base": "

This exception is thrown when a resource referenced by the operation does not exist

", "refs": { "ResponseStream$resourceNotFoundException": null } }, "ResponseStream": { "base": "

Response body of is a stream

", "refs": { "InvokeAgentResponse$completion": "

Inference response from the model in the format specified in the Content-Type response header.

" } }, "RetrievalResultContent": { "base": "

Content of a retrieval result.

", "refs": { "KnowledgeBaseRetrievalResult$content": null, "RetrievedReference$content": null } }, "RetrievalResultLocation": { "base": "

The source location of a retrieval result.

", "refs": { "KnowledgeBaseRetrievalResult$location": null, "RetrievedReference$location": null } }, "RetrievalResultLocationType": { "base": "

The location type of a retrieval result.

", "refs": { "RetrievalResultLocation$type": null } }, "RetrievalResultS3Location": { "base": "

The S3 location of a retrieval result.

", "refs": { "RetrievalResultLocation$s3Location": null } }, "RetrieveAndGenerateConfiguration": { "base": "

Configures the retrieval and generation for the session.

", "refs": { "RetrieveAndGenerateRequest$retrieveAndGenerateConfiguration": null } }, "RetrieveAndGenerateInput": { "base": "

Customer input of the turn

", "refs": { "RetrieveAndGenerateRequest$input": null } }, "RetrieveAndGenerateInputTextString": { "base": null, "refs": { "RetrieveAndGenerateInput$text": "

Customer input of the turn in text

" } }, "RetrieveAndGenerateOutput": { "base": "

Service response of the turn

", "refs": { "RetrieveAndGenerateResponse$output": null } }, "RetrieveAndGenerateRequest": { "base": null, "refs": { } }, "RetrieveAndGenerateResponse": { "base": null, "refs": { } }, "RetrieveAndGenerateSessionConfiguration": { "base": "

Configures common parameters of the session.

", "refs": { "RetrieveAndGenerateRequest$sessionConfiguration": null } }, "RetrieveAndGenerateType": { "base": "

The type of RetrieveAndGenerate.

", "refs": { "RetrieveAndGenerateConfiguration$type": null } }, "RetrieveRequest": { "base": null, "refs": { } }, "RetrieveResponse": { "base": null, "refs": { } }, "RetrievedReference": { "base": "

Retrieved reference

", "refs": { "RetrievedReferences$member": null } }, "RetrievedReferences": { "base": "

list of retrieved references

", "refs": { "Citation$retrievedReferences": null, "KnowledgeBaseLookupOutput$retrievedReferences": null } }, "ServiceQuotaExceededException": { "base": "

This exception is thrown when a request is made beyond the service quota

", "refs": { "ResponseStream$serviceQuotaExceededException": null } }, "SessionAttributesMap": { "base": "

Session attributes are pass through attributes passed to the action group

", "refs": { "SessionState$sessionAttributes": "

Session Attributes

" } }, "SessionId": { "base": "

Identifier of the session.

", "refs": { "InvokeAgentRequest$sessionId": "

Identifier used for the current session

", "InvokeAgentResponse$sessionId": "

streaming response mimetype of the model

", "RetrieveAndGenerateRequest$sessionId": null, "RetrieveAndGenerateResponse$sessionId": null, "TracePart$sessionId": null } }, "SessionState": { "base": "

Session state provided

", "refs": { "InvokeAgentRequest$sessionState": "

Session state passed by customer. Base64 encoded json string representation of SessionState.

" } }, "Source": { "base": "

Parsing error source

", "refs": { "RepromptResponse$source": null } }, "Span": { "base": "

Span of text

", "refs": { "TextResponsePart$span": null } }, "SpanEndInteger": { "base": null, "refs": { "Span$end": "

End of span

" } }, "SpanStartInteger": { "base": null, "refs": { "Span$start": "

Start of span

" } }, "StopSequences": { "base": "

List of stop sequences

", "refs": { "InferenceConfiguration$stopSequences": null } }, "String": { "base": null, "refs": { "ContentMap$key": null, "Parameter$name": "

Name of parameter

", "Parameter$type": "

Type of parameter

", "Parameter$value": "

Value of parameter

", "PromptSessionAttributesMap$key": null, "PromptSessionAttributesMap$value": null, "RepromptResponse$text": "

Reprompt response text

", "RetrievalResultContent$text": "

Content of a retrieval result in text

", "RetrievalResultS3Location$uri": "

URI of S3 location

", "RetrieveAndGenerateOutput$text": "

Service response of the turn in text

", "SessionAttributesMap$key": null, "SessionAttributesMap$value": null, "StopSequences$member": null, "TextResponsePart$text": "

Response part in text

" } }, "Temperature": { "base": "

Controls randomness, higher values increase diversity

", "refs": { "InferenceConfiguration$temperature": null } }, "TextResponsePart": { "base": "

Text response part

", "refs": { "GeneratedResponsePart$textResponsePart": null } }, "ThrottlingException": { "base": "

This exception is thrown when the number of requests exceeds the limit

", "refs": { "ResponseStream$throttlingException": null } }, "TopK": { "base": "

Sample from the k most likely next tokens

", "refs": { "InferenceConfiguration$topK": null } }, "TopP": { "base": "

Cumulative probability cutoff for token selection

", "refs": { "InferenceConfiguration$topP": null } }, "Trace": { "base": "

Trace contains intermidate response for customer

", "refs": { "TracePart$trace": null } }, "TraceId": { "base": "

Identifier for trace

", "refs": { "FailureTrace$traceId": null, "InvocationInput$traceId": null, "ModelInvocationInput$traceId": null, "Observation$traceId": null, "PostProcessingModelInvocationOutput$traceId": null, "PreProcessingModelInvocationOutput$traceId": null, "Rationale$traceId": null } }, "TraceKnowledgeBaseId": { "base": "

Agent Trace Action Group Knowledge Base Id

", "refs": { "KnowledgeBaseLookupInput$knowledgeBaseId": null } }, "TracePart": { "base": "

Trace Part which contains intermidate response for customer

", "refs": { "ResponseStream$trace": null } }, "Type": { "base": "

types of observations

", "refs": { "Observation$type": null } }, "ValidationException": { "base": "

This exception is thrown when the request's input validation fails

", "refs": { "ResponseStream$validationException": null } }, "Verb": { "base": "

Agent Trace Action Group Action verb

", "refs": { "ActionGroupInvocationInput$verb": null } } } }