Documentation ¶
Overview ¶
Package bedrockagentruntime provides the client and types for making API requests to Agents for Amazon Bedrock Runtime.
Contains APIs related to model invocation and querying of knowledge bases.
See https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26 for more information on this service.
See bedrockagentruntime package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/bedrockagentruntime/
Using the Client ¶
To contact Agents for Amazon Bedrock Runtime with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.
See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/
See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config
See the Agents for Amazon Bedrock Runtime client BedrockAgentRuntime for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/bedrockagentruntime/#New
Index ¶
- Constants
- func CreationMode_Values() []string
- func ExecutionType_Values() []string
- func ExternalSourceType_Values() []string
- func FileSourceType_Values() []string
- func FileUseCase_Values() []string
- func FlowCompletionReason_Values() []string
- func GuadrailAction_Values() []string
- func GuardrailAction_Values() []string
- func GuardrailContentFilterConfidence_Values() []string
- func GuardrailContentFilterType_Values() []string
- func GuardrailContentPolicyAction_Values() []string
- func GuardrailManagedWordType_Values() []string
- func GuardrailPiiEntityType_Values() []string
- func GuardrailSensitiveInformationPolicyAction_Values() []string
- func GuardrailTopicPolicyAction_Values() []string
- func GuardrailTopicType_Values() []string
- func GuardrailWordPolicyAction_Values() []string
- func InvocationType_Values() []string
- func MemoryType_Values() []string
- func NodeType_Values() []string
- func PromptType_Values() []string
- func QueryTransformationType_Values() []string
- func ResponseState_Values() []string
- func RetrievalResultLocationType_Values() []string
- func RetrieveAndGenerateType_Values() []string
- func SearchType_Values() []string
- func Source_Values() []string
- func Type_Values() []string
- type AccessDeniedException
- func (s *AccessDeniedException) Code() string
- func (s *AccessDeniedException) Error() string
- func (s AccessDeniedException) GoString() string
- func (s *AccessDeniedException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *AccessDeniedException) Message() string
- func (s *AccessDeniedException) OrigErr() error
- func (s *AccessDeniedException) RequestID() string
- func (s *AccessDeniedException) StatusCode() int
- func (s AccessDeniedException) String() string
- func (s *AccessDeniedException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ActionGroupInvocationInput_
- func (s ActionGroupInvocationInput_) GoString() string
- func (s *ActionGroupInvocationInput_) SetActionGroupName(v string) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetApiPath(v string) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetExecutionType(v string) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetFunction(v string) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetInvocationId(v string) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetParameters(v []*Parameter) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetRequestBody(v *RequestBody) *ActionGroupInvocationInput_
- func (s *ActionGroupInvocationInput_) SetVerb(v string) *ActionGroupInvocationInput_
- func (s ActionGroupInvocationInput_) String() string
- type ActionGroupInvocationOutput_
- type ApiInvocationInput_
- func (s ApiInvocationInput_) GoString() string
- func (s *ApiInvocationInput_) SetActionGroup(v string) *ApiInvocationInput_
- func (s *ApiInvocationInput_) SetApiPath(v string) *ApiInvocationInput_
- func (s *ApiInvocationInput_) SetHttpMethod(v string) *ApiInvocationInput_
- func (s *ApiInvocationInput_) SetParameters(v []*ApiParameter) *ApiInvocationInput_
- func (s *ApiInvocationInput_) SetRequestBody(v *ApiRequestBody) *ApiInvocationInput_
- func (s ApiInvocationInput_) String() string
- type ApiParameter
- type ApiRequestBody
- type ApiResult
- func (s ApiResult) GoString() string
- func (s *ApiResult) SetActionGroup(v string) *ApiResult
- func (s *ApiResult) SetApiPath(v string) *ApiResult
- func (s *ApiResult) SetHttpMethod(v string) *ApiResult
- func (s *ApiResult) SetHttpStatusCode(v int64) *ApiResult
- func (s *ApiResult) SetResponseBody(v map[string]*ContentBody) *ApiResult
- func (s *ApiResult) SetResponseState(v string) *ApiResult
- func (s ApiResult) String() string
- func (s *ApiResult) Validate() error
- type Attribution
- type BadGatewayException
- func (s *BadGatewayException) Code() string
- func (s *BadGatewayException) Error() string
- func (s BadGatewayException) GoString() string
- func (s *BadGatewayException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *BadGatewayException) Message() string
- func (s *BadGatewayException) OrigErr() error
- func (s *BadGatewayException) RequestID() string
- func (s *BadGatewayException) StatusCode() int
- func (s BadGatewayException) String() string
- func (s *BadGatewayException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type BedrockAgentRuntime
- func (c *BedrockAgentRuntime) DeleteAgentMemory(input *DeleteAgentMemoryInput) (*DeleteAgentMemoryOutput, error)
- func (c *BedrockAgentRuntime) DeleteAgentMemoryRequest(input *DeleteAgentMemoryInput) (req *request.Request, output *DeleteAgentMemoryOutput)
- func (c *BedrockAgentRuntime) DeleteAgentMemoryWithContext(ctx aws.Context, input *DeleteAgentMemoryInput, opts ...request.Option) (*DeleteAgentMemoryOutput, error)
- func (c *BedrockAgentRuntime) GetAgentMemory(input *GetAgentMemoryInput) (*GetAgentMemoryOutput, error)
- func (c *BedrockAgentRuntime) GetAgentMemoryPages(input *GetAgentMemoryInput, fn func(*GetAgentMemoryOutput, bool) bool) error
- func (c *BedrockAgentRuntime) GetAgentMemoryPagesWithContext(ctx aws.Context, input *GetAgentMemoryInput, ...) error
- func (c *BedrockAgentRuntime) GetAgentMemoryRequest(input *GetAgentMemoryInput) (req *request.Request, output *GetAgentMemoryOutput)
- func (c *BedrockAgentRuntime) GetAgentMemoryWithContext(ctx aws.Context, input *GetAgentMemoryInput, opts ...request.Option) (*GetAgentMemoryOutput, error)
- func (c *BedrockAgentRuntime) InvokeAgent(input *InvokeAgentInput) (*InvokeAgentOutput, error)
- func (c *BedrockAgentRuntime) InvokeAgentRequest(input *InvokeAgentInput) (req *request.Request, output *InvokeAgentOutput)
- func (c *BedrockAgentRuntime) InvokeAgentWithContext(ctx aws.Context, input *InvokeAgentInput, opts ...request.Option) (*InvokeAgentOutput, error)
- func (c *BedrockAgentRuntime) InvokeFlow(input *InvokeFlowInput) (*InvokeFlowOutput, error)
- func (c *BedrockAgentRuntime) InvokeFlowRequest(input *InvokeFlowInput) (req *request.Request, output *InvokeFlowOutput)
- func (c *BedrockAgentRuntime) InvokeFlowWithContext(ctx aws.Context, input *InvokeFlowInput, opts ...request.Option) (*InvokeFlowOutput, error)
- func (c *BedrockAgentRuntime) Retrieve(input *RetrieveInput) (*RetrieveOutput, error)
- func (c *BedrockAgentRuntime) RetrieveAndGenerate(input *RetrieveAndGenerateInput) (*RetrieveAndGenerateOutput, error)
- func (c *BedrockAgentRuntime) RetrieveAndGenerateRequest(input *RetrieveAndGenerateInput) (req *request.Request, output *RetrieveAndGenerateOutput)
- func (c *BedrockAgentRuntime) RetrieveAndGenerateWithContext(ctx aws.Context, input *RetrieveAndGenerateInput, opts ...request.Option) (*RetrieveAndGenerateOutput, error)
- func (c *BedrockAgentRuntime) RetrievePages(input *RetrieveInput, fn func(*RetrieveOutput, bool) bool) error
- func (c *BedrockAgentRuntime) RetrievePagesWithContext(ctx aws.Context, input *RetrieveInput, fn func(*RetrieveOutput, bool) bool, ...) error
- func (c *BedrockAgentRuntime) RetrieveRequest(input *RetrieveInput) (req *request.Request, output *RetrieveOutput)
- func (c *BedrockAgentRuntime) RetrieveWithContext(ctx aws.Context, input *RetrieveInput, opts ...request.Option) (*RetrieveOutput, error)
- type ByteContentDoc
- func (s ByteContentDoc) GoString() string
- func (s *ByteContentDoc) SetContentType(v string) *ByteContentDoc
- func (s *ByteContentDoc) SetData(v []byte) *ByteContentDoc
- func (s *ByteContentDoc) SetIdentifier(v string) *ByteContentDoc
- func (s ByteContentDoc) String() string
- func (s *ByteContentDoc) Validate() error
- type ByteContentFile
- type Citation
- type CodeInterpreterInvocationInput_
- func (s CodeInterpreterInvocationInput_) GoString() string
- func (s *CodeInterpreterInvocationInput_) SetCode(v string) *CodeInterpreterInvocationInput_
- func (s *CodeInterpreterInvocationInput_) SetFiles(v []*string) *CodeInterpreterInvocationInput_
- func (s CodeInterpreterInvocationInput_) String() string
- type CodeInterpreterInvocationOutput_
- func (s CodeInterpreterInvocationOutput_) GoString() string
- func (s *CodeInterpreterInvocationOutput_) SetExecutionError(v string) *CodeInterpreterInvocationOutput_
- func (s *CodeInterpreterInvocationOutput_) SetExecutionOutput(v string) *CodeInterpreterInvocationOutput_
- func (s *CodeInterpreterInvocationOutput_) SetExecutionTimeout(v bool) *CodeInterpreterInvocationOutput_
- func (s *CodeInterpreterInvocationOutput_) SetFiles(v []*string) *CodeInterpreterInvocationOutput_
- func (s CodeInterpreterInvocationOutput_) String() string
- type ConflictException
- func (s *ConflictException) Code() string
- func (s *ConflictException) Error() string
- func (s ConflictException) GoString() string
- func (s *ConflictException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ConflictException) Message() string
- func (s *ConflictException) OrigErr() error
- func (s *ConflictException) RequestID() string
- func (s *ConflictException) StatusCode() int
- func (s ConflictException) String() string
- func (s *ConflictException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ContentBody
- type DeleteAgentMemoryInput
- func (s DeleteAgentMemoryInput) GoString() string
- func (s *DeleteAgentMemoryInput) SetAgentAliasId(v string) *DeleteAgentMemoryInput
- func (s *DeleteAgentMemoryInput) SetAgentId(v string) *DeleteAgentMemoryInput
- func (s *DeleteAgentMemoryInput) SetMemoryId(v string) *DeleteAgentMemoryInput
- func (s DeleteAgentMemoryInput) String() string
- func (s *DeleteAgentMemoryInput) Validate() error
- type DeleteAgentMemoryOutput
- type DependencyFailedException
- func (s *DependencyFailedException) Code() string
- func (s *DependencyFailedException) Error() string
- func (s DependencyFailedException) GoString() string
- func (s *DependencyFailedException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *DependencyFailedException) Message() string
- func (s *DependencyFailedException) OrigErr() error
- func (s *DependencyFailedException) RequestID() string
- func (s *DependencyFailedException) StatusCode() int
- func (s DependencyFailedException) String() string
- func (s *DependencyFailedException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ExternalSource
- func (s ExternalSource) GoString() string
- func (s *ExternalSource) SetByteContent(v *ByteContentDoc) *ExternalSource
- func (s *ExternalSource) SetS3Location(v *S3ObjectDoc) *ExternalSource
- func (s *ExternalSource) SetSourceType(v string) *ExternalSource
- func (s ExternalSource) String() string
- func (s *ExternalSource) Validate() error
- type ExternalSourcesGenerationConfiguration
- func (s ExternalSourcesGenerationConfiguration) GoString() string
- func (s *ExternalSourcesGenerationConfiguration) SetGuardrailConfiguration(v *GuardrailConfiguration) *ExternalSourcesGenerationConfiguration
- func (s *ExternalSourcesGenerationConfiguration) SetInferenceConfig(v *InferenceConfig) *ExternalSourcesGenerationConfiguration
- func (s *ExternalSourcesGenerationConfiguration) SetPromptTemplate(v *PromptTemplate) *ExternalSourcesGenerationConfiguration
- func (s ExternalSourcesGenerationConfiguration) String() string
- func (s *ExternalSourcesGenerationConfiguration) Validate() error
- type ExternalSourcesRetrieveAndGenerateConfiguration
- func (s ExternalSourcesRetrieveAndGenerateConfiguration) GoString() string
- func (s *ExternalSourcesRetrieveAndGenerateConfiguration) SetGenerationConfiguration(v *ExternalSourcesGenerationConfiguration) *ExternalSourcesRetrieveAndGenerateConfiguration
- func (s *ExternalSourcesRetrieveAndGenerateConfiguration) SetModelArn(v string) *ExternalSourcesRetrieveAndGenerateConfiguration
- func (s *ExternalSourcesRetrieveAndGenerateConfiguration) SetSources(v []*ExternalSource) *ExternalSourcesRetrieveAndGenerateConfiguration
- func (s ExternalSourcesRetrieveAndGenerateConfiguration) String() string
- func (s *ExternalSourcesRetrieveAndGenerateConfiguration) Validate() error
- type FailureTrace
- type FilePart
- func (s FilePart) GoString() string
- func (s *FilePart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *FilePart) SetFiles(v []*OutputFile) *FilePart
- func (s FilePart) String() string
- func (s *FilePart) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type FileSource
- func (s FileSource) GoString() string
- func (s *FileSource) SetByteContent(v *ByteContentFile) *FileSource
- func (s *FileSource) SetS3Location(v *S3ObjectFile) *FileSource
- func (s *FileSource) SetSourceType(v string) *FileSource
- func (s FileSource) String() string
- func (s *FileSource) Validate() error
- type FinalResponse
- type FlowCompletionEvent
- func (s FlowCompletionEvent) GoString() string
- func (s *FlowCompletionEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *FlowCompletionEvent) SetCompletionReason(v string) *FlowCompletionEvent
- func (s FlowCompletionEvent) String() string
- func (s *FlowCompletionEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type FlowInputContent
- type FlowInput_
- type FlowOutputContent
- type FlowOutputEvent
- func (s FlowOutputEvent) GoString() string
- func (s *FlowOutputEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *FlowOutputEvent) SetContent(v *FlowOutputContent) *FlowOutputEvent
- func (s *FlowOutputEvent) SetNodeName(v string) *FlowOutputEvent
- func (s *FlowOutputEvent) SetNodeType(v string) *FlowOutputEvent
- func (s FlowOutputEvent) String() string
- func (s *FlowOutputEvent) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type FlowResponseStreamEvent
- type FlowResponseStreamReader
- type FlowResponseStreamUnknownEvent
- type FunctionInvocationInput_
- func (s FunctionInvocationInput_) GoString() string
- func (s *FunctionInvocationInput_) SetActionGroup(v string) *FunctionInvocationInput_
- func (s *FunctionInvocationInput_) SetFunction(v string) *FunctionInvocationInput_
- func (s *FunctionInvocationInput_) SetParameters(v []*FunctionParameter) *FunctionInvocationInput_
- func (s FunctionInvocationInput_) String() string
- type FunctionParameter
- type FunctionResult
- func (s FunctionResult) GoString() string
- func (s *FunctionResult) SetActionGroup(v string) *FunctionResult
- func (s *FunctionResult) SetFunction(v string) *FunctionResult
- func (s *FunctionResult) SetResponseBody(v map[string]*ContentBody) *FunctionResult
- func (s *FunctionResult) SetResponseState(v string) *FunctionResult
- func (s FunctionResult) String() string
- func (s *FunctionResult) Validate() error
- type GeneratedResponsePart
- type GenerationConfiguration
- func (s GenerationConfiguration) GoString() string
- func (s *GenerationConfiguration) SetGuardrailConfiguration(v *GuardrailConfiguration) *GenerationConfiguration
- func (s *GenerationConfiguration) SetInferenceConfig(v *InferenceConfig) *GenerationConfiguration
- func (s *GenerationConfiguration) SetPromptTemplate(v *PromptTemplate) *GenerationConfiguration
- func (s GenerationConfiguration) String() string
- func (s *GenerationConfiguration) Validate() error
- type GetAgentMemoryInput
- func (s GetAgentMemoryInput) GoString() string
- func (s *GetAgentMemoryInput) SetAgentAliasId(v string) *GetAgentMemoryInput
- func (s *GetAgentMemoryInput) SetAgentId(v string) *GetAgentMemoryInput
- func (s *GetAgentMemoryInput) SetMaxItems(v int64) *GetAgentMemoryInput
- func (s *GetAgentMemoryInput) SetMemoryId(v string) *GetAgentMemoryInput
- func (s *GetAgentMemoryInput) SetMemoryType(v string) *GetAgentMemoryInput
- func (s *GetAgentMemoryInput) SetNextToken(v string) *GetAgentMemoryInput
- func (s GetAgentMemoryInput) String() string
- func (s *GetAgentMemoryInput) Validate() error
- type GetAgentMemoryOutput
- type GuardrailAssessment
- func (s GuardrailAssessment) GoString() string
- func (s *GuardrailAssessment) SetContentPolicy(v *GuardrailContentPolicyAssessment) *GuardrailAssessment
- func (s *GuardrailAssessment) SetSensitiveInformationPolicy(v *GuardrailSensitiveInformationPolicyAssessment) *GuardrailAssessment
- func (s *GuardrailAssessment) SetTopicPolicy(v *GuardrailTopicPolicyAssessment) *GuardrailAssessment
- func (s *GuardrailAssessment) SetWordPolicy(v *GuardrailWordPolicyAssessment) *GuardrailAssessment
- func (s GuardrailAssessment) String() string
- type GuardrailConfiguration
- func (s GuardrailConfiguration) GoString() string
- func (s *GuardrailConfiguration) SetGuardrailId(v string) *GuardrailConfiguration
- func (s *GuardrailConfiguration) SetGuardrailVersion(v string) *GuardrailConfiguration
- func (s GuardrailConfiguration) String() string
- func (s *GuardrailConfiguration) Validate() error
- type GuardrailContentFilter
- func (s GuardrailContentFilter) GoString() string
- func (s *GuardrailContentFilter) SetAction(v string) *GuardrailContentFilter
- func (s *GuardrailContentFilter) SetConfidence(v string) *GuardrailContentFilter
- func (s *GuardrailContentFilter) SetType(v string) *GuardrailContentFilter
- func (s GuardrailContentFilter) String() string
- type GuardrailContentPolicyAssessment
- type GuardrailCustomWord
- type GuardrailManagedWord
- func (s GuardrailManagedWord) GoString() string
- func (s *GuardrailManagedWord) SetAction(v string) *GuardrailManagedWord
- func (s *GuardrailManagedWord) SetMatch(v string) *GuardrailManagedWord
- func (s *GuardrailManagedWord) SetType(v string) *GuardrailManagedWord
- func (s GuardrailManagedWord) String() string
- type GuardrailPiiEntityFilter
- func (s GuardrailPiiEntityFilter) GoString() string
- func (s *GuardrailPiiEntityFilter) SetAction(v string) *GuardrailPiiEntityFilter
- func (s *GuardrailPiiEntityFilter) SetMatch(v string) *GuardrailPiiEntityFilter
- func (s *GuardrailPiiEntityFilter) SetType(v string) *GuardrailPiiEntityFilter
- func (s GuardrailPiiEntityFilter) String() string
- type GuardrailRegexFilter
- func (s GuardrailRegexFilter) GoString() string
- func (s *GuardrailRegexFilter) SetAction(v string) *GuardrailRegexFilter
- func (s *GuardrailRegexFilter) SetMatch(v string) *GuardrailRegexFilter
- func (s *GuardrailRegexFilter) SetName(v string) *GuardrailRegexFilter
- func (s *GuardrailRegexFilter) SetRegex(v string) *GuardrailRegexFilter
- func (s GuardrailRegexFilter) String() string
- type GuardrailSensitiveInformationPolicyAssessment
- func (s GuardrailSensitiveInformationPolicyAssessment) GoString() string
- func (s *GuardrailSensitiveInformationPolicyAssessment) SetPiiEntities(v []*GuardrailPiiEntityFilter) *GuardrailSensitiveInformationPolicyAssessment
- func (s *GuardrailSensitiveInformationPolicyAssessment) SetRegexes(v []*GuardrailRegexFilter) *GuardrailSensitiveInformationPolicyAssessment
- func (s GuardrailSensitiveInformationPolicyAssessment) String() string
- type GuardrailTopic
- type GuardrailTopicPolicyAssessment
- type GuardrailTrace
- func (s GuardrailTrace) GoString() string
- func (s *GuardrailTrace) SetAction(v string) *GuardrailTrace
- func (s *GuardrailTrace) SetInputAssessments(v []*GuardrailAssessment) *GuardrailTrace
- func (s *GuardrailTrace) SetOutputAssessments(v []*GuardrailAssessment) *GuardrailTrace
- func (s *GuardrailTrace) SetTraceId(v string) *GuardrailTrace
- func (s GuardrailTrace) String() string
- type GuardrailWordPolicyAssessment
- func (s GuardrailWordPolicyAssessment) GoString() string
- func (s *GuardrailWordPolicyAssessment) SetCustomWords(v []*GuardrailCustomWord) *GuardrailWordPolicyAssessment
- func (s *GuardrailWordPolicyAssessment) SetManagedWordLists(v []*GuardrailManagedWord) *GuardrailWordPolicyAssessment
- func (s GuardrailWordPolicyAssessment) String() string
- type InferenceConfig
- type InferenceConfiguration
- func (s InferenceConfiguration) GoString() string
- func (s *InferenceConfiguration) SetMaximumLength(v int64) *InferenceConfiguration
- func (s *InferenceConfiguration) SetStopSequences(v []*string) *InferenceConfiguration
- func (s *InferenceConfiguration) SetTemperature(v float64) *InferenceConfiguration
- func (s *InferenceConfiguration) SetTopK(v int64) *InferenceConfiguration
- func (s *InferenceConfiguration) SetTopP(v float64) *InferenceConfiguration
- func (s InferenceConfiguration) String() string
- type InputFile
- type InternalServerException
- func (s *InternalServerException) Code() string
- func (s *InternalServerException) Error() string
- func (s InternalServerException) GoString() string
- func (s *InternalServerException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *InternalServerException) Message() string
- func (s *InternalServerException) OrigErr() error
- func (s *InternalServerException) RequestID() string
- func (s *InternalServerException) StatusCode() int
- func (s InternalServerException) String() string
- func (s *InternalServerException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type InvocationInputMember
- func (s InvocationInputMember) GoString() string
- func (s *InvocationInputMember) SetApiInvocationInput(v *ApiInvocationInput_) *InvocationInputMember
- func (s *InvocationInputMember) SetFunctionInvocationInput(v *FunctionInvocationInput_) *InvocationInputMember
- func (s InvocationInputMember) String() string
- type InvocationInput_
- func (s InvocationInput_) GoString() string
- func (s *InvocationInput_) SetActionGroupInvocationInput(v *ActionGroupInvocationInput_) *InvocationInput_
- func (s *InvocationInput_) SetCodeInterpreterInvocationInput(v *CodeInterpreterInvocationInput_) *InvocationInput_
- func (s *InvocationInput_) SetInvocationType(v string) *InvocationInput_
- func (s *InvocationInput_) SetKnowledgeBaseLookupInput(v *KnowledgeBaseLookupInput_) *InvocationInput_
- func (s *InvocationInput_) SetTraceId(v string) *InvocationInput_
- func (s InvocationInput_) String() string
- type InvocationResultMember
- func (s InvocationResultMember) GoString() string
- func (s *InvocationResultMember) SetApiResult(v *ApiResult) *InvocationResultMember
- func (s *InvocationResultMember) SetFunctionResult(v *FunctionResult) *InvocationResultMember
- func (s InvocationResultMember) String() string
- func (s *InvocationResultMember) Validate() error
- type InvokeAgentEventStream
- type InvokeAgentInput
- func (s InvokeAgentInput) GoString() string
- func (s *InvokeAgentInput) SetAgentAliasId(v string) *InvokeAgentInput
- func (s *InvokeAgentInput) SetAgentId(v string) *InvokeAgentInput
- func (s *InvokeAgentInput) SetEnableTrace(v bool) *InvokeAgentInput
- func (s *InvokeAgentInput) SetEndSession(v bool) *InvokeAgentInput
- func (s *InvokeAgentInput) SetInputText(v string) *InvokeAgentInput
- func (s *InvokeAgentInput) SetMemoryId(v string) *InvokeAgentInput
- func (s *InvokeAgentInput) SetSessionId(v string) *InvokeAgentInput
- func (s *InvokeAgentInput) SetSessionState(v *SessionState) *InvokeAgentInput
- func (s InvokeAgentInput) String() string
- func (s *InvokeAgentInput) Validate() error
- type InvokeAgentOutput
- func (s *InvokeAgentOutput) GetStream() *InvokeAgentEventStream
- func (s InvokeAgentOutput) GoString() string
- func (s *InvokeAgentOutput) SetContentType(v string) *InvokeAgentOutput
- func (s *InvokeAgentOutput) SetMemoryId(v string) *InvokeAgentOutput
- func (s *InvokeAgentOutput) SetSessionId(v string) *InvokeAgentOutput
- func (s InvokeAgentOutput) String() string
- type InvokeFlowEventStream
- type InvokeFlowInput
- func (s InvokeFlowInput) GoString() string
- func (s *InvokeFlowInput) SetFlowAliasIdentifier(v string) *InvokeFlowInput
- func (s *InvokeFlowInput) SetFlowIdentifier(v string) *InvokeFlowInput
- func (s *InvokeFlowInput) SetInputs(v []*FlowInput_) *InvokeFlowInput
- func (s InvokeFlowInput) String() string
- func (s *InvokeFlowInput) Validate() error
- type InvokeFlowOutput
- type KnowledgeBaseConfiguration
- func (s KnowledgeBaseConfiguration) GoString() string
- func (s *KnowledgeBaseConfiguration) SetKnowledgeBaseId(v string) *KnowledgeBaseConfiguration
- func (s *KnowledgeBaseConfiguration) SetRetrievalConfiguration(v *KnowledgeBaseRetrievalConfiguration) *KnowledgeBaseConfiguration
- func (s KnowledgeBaseConfiguration) String() string
- func (s *KnowledgeBaseConfiguration) Validate() error
- type KnowledgeBaseLookupInput_
- type KnowledgeBaseLookupOutput_
- type KnowledgeBaseQuery
- type KnowledgeBaseRetrievalConfiguration
- func (s KnowledgeBaseRetrievalConfiguration) GoString() string
- func (s *KnowledgeBaseRetrievalConfiguration) SetVectorSearchConfiguration(v *KnowledgeBaseVectorSearchConfiguration) *KnowledgeBaseRetrievalConfiguration
- func (s KnowledgeBaseRetrievalConfiguration) String() string
- func (s *KnowledgeBaseRetrievalConfiguration) Validate() error
- type KnowledgeBaseRetrievalResult
- func (s KnowledgeBaseRetrievalResult) GoString() string
- func (s *KnowledgeBaseRetrievalResult) SetContent(v *RetrievalResultContent) *KnowledgeBaseRetrievalResult
- func (s *KnowledgeBaseRetrievalResult) SetLocation(v *RetrievalResultLocation) *KnowledgeBaseRetrievalResult
- func (s *KnowledgeBaseRetrievalResult) SetScore(v float64) *KnowledgeBaseRetrievalResult
- func (s KnowledgeBaseRetrievalResult) String() string
- type KnowledgeBaseRetrieveAndGenerateConfiguration
- func (s KnowledgeBaseRetrieveAndGenerateConfiguration) GoString() string
- func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetGenerationConfiguration(v *GenerationConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration
- func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetKnowledgeBaseId(v string) *KnowledgeBaseRetrieveAndGenerateConfiguration
- func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetModelArn(v string) *KnowledgeBaseRetrieveAndGenerateConfiguration
- func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetOrchestrationConfiguration(v *OrchestrationConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration
- func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetRetrievalConfiguration(v *KnowledgeBaseRetrievalConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration
- func (s KnowledgeBaseRetrieveAndGenerateConfiguration) String() string
- func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) Validate() error
- type KnowledgeBaseVectorSearchConfiguration
- func (s KnowledgeBaseVectorSearchConfiguration) GoString() string
- func (s *KnowledgeBaseVectorSearchConfiguration) SetFilter(v *RetrievalFilter) *KnowledgeBaseVectorSearchConfiguration
- func (s *KnowledgeBaseVectorSearchConfiguration) SetNumberOfResults(v int64) *KnowledgeBaseVectorSearchConfiguration
- func (s *KnowledgeBaseVectorSearchConfiguration) SetOverrideSearchType(v string) *KnowledgeBaseVectorSearchConfiguration
- func (s KnowledgeBaseVectorSearchConfiguration) String() string
- func (s *KnowledgeBaseVectorSearchConfiguration) Validate() error
- type Memory
- type MemorySessionSummary
- func (s MemorySessionSummary) GoString() string
- func (s *MemorySessionSummary) SetMemoryId(v string) *MemorySessionSummary
- func (s *MemorySessionSummary) SetSessionExpiryTime(v time.Time) *MemorySessionSummary
- func (s *MemorySessionSummary) SetSessionId(v string) *MemorySessionSummary
- func (s *MemorySessionSummary) SetSessionStartTime(v time.Time) *MemorySessionSummary
- func (s *MemorySessionSummary) SetSummaryText(v string) *MemorySessionSummary
- func (s MemorySessionSummary) String() string
- type ModelInvocationInput_
- func (s ModelInvocationInput_) GoString() string
- func (s *ModelInvocationInput_) SetInferenceConfiguration(v *InferenceConfiguration) *ModelInvocationInput_
- func (s *ModelInvocationInput_) SetOverrideLambda(v string) *ModelInvocationInput_
- func (s *ModelInvocationInput_) SetParserMode(v string) *ModelInvocationInput_
- func (s *ModelInvocationInput_) SetPromptCreationMode(v string) *ModelInvocationInput_
- func (s *ModelInvocationInput_) SetText(v string) *ModelInvocationInput_
- func (s *ModelInvocationInput_) SetTraceId(v string) *ModelInvocationInput_
- func (s *ModelInvocationInput_) SetType(v string) *ModelInvocationInput_
- func (s ModelInvocationInput_) String() string
- type Observation
- func (s Observation) GoString() string
- func (s *Observation) SetActionGroupInvocationOutput(v *ActionGroupInvocationOutput_) *Observation
- func (s *Observation) SetCodeInterpreterInvocationOutput(v *CodeInterpreterInvocationOutput_) *Observation
- func (s *Observation) SetFinalResponse(v *FinalResponse) *Observation
- func (s *Observation) SetKnowledgeBaseLookupOutput(v *KnowledgeBaseLookupOutput_) *Observation
- func (s *Observation) SetRepromptResponse(v *RepromptResponse) *Observation
- func (s *Observation) SetTraceId(v string) *Observation
- func (s *Observation) SetType(v string) *Observation
- func (s Observation) String() string
- type OrchestrationConfiguration
- type OrchestrationTrace
- func (s OrchestrationTrace) GoString() string
- func (s *OrchestrationTrace) SetInvocationInput(v *InvocationInput_) *OrchestrationTrace
- func (s *OrchestrationTrace) SetModelInvocationInput(v *ModelInvocationInput_) *OrchestrationTrace
- func (s *OrchestrationTrace) SetObservation(v *Observation) *OrchestrationTrace
- func (s *OrchestrationTrace) SetRationale(v *Rationale) *OrchestrationTrace
- func (s OrchestrationTrace) String() string
- type OutputFile
- type Parameter
- type PayloadPart
- func (s PayloadPart) GoString() string
- func (s *PayloadPart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *PayloadPart) SetAttribution(v *Attribution) *PayloadPart
- func (s *PayloadPart) SetBytes(v []byte) *PayloadPart
- func (s PayloadPart) String() string
- func (s *PayloadPart) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type PostProcessingModelInvocationOutput_
- func (s PostProcessingModelInvocationOutput_) GoString() string
- func (s *PostProcessingModelInvocationOutput_) SetParsedResponse(v *PostProcessingParsedResponse) *PostProcessingModelInvocationOutput_
- func (s *PostProcessingModelInvocationOutput_) SetTraceId(v string) *PostProcessingModelInvocationOutput_
- func (s PostProcessingModelInvocationOutput_) String() string
- type PostProcessingParsedResponse
- type PostProcessingTrace
- func (s PostProcessingTrace) GoString() string
- func (s *PostProcessingTrace) SetModelInvocationInput(v *ModelInvocationInput_) *PostProcessingTrace
- func (s *PostProcessingTrace) SetModelInvocationOutput(v *PostProcessingModelInvocationOutput_) *PostProcessingTrace
- func (s PostProcessingTrace) String() string
- type PreProcessingModelInvocationOutput_
- func (s PreProcessingModelInvocationOutput_) GoString() string
- func (s *PreProcessingModelInvocationOutput_) SetParsedResponse(v *PreProcessingParsedResponse) *PreProcessingModelInvocationOutput_
- func (s *PreProcessingModelInvocationOutput_) SetTraceId(v string) *PreProcessingModelInvocationOutput_
- func (s PreProcessingModelInvocationOutput_) String() string
- type PreProcessingParsedResponse
- type PreProcessingTrace
- func (s PreProcessingTrace) GoString() string
- func (s *PreProcessingTrace) SetModelInvocationInput(v *ModelInvocationInput_) *PreProcessingTrace
- func (s *PreProcessingTrace) SetModelInvocationOutput(v *PreProcessingModelInvocationOutput_) *PreProcessingTrace
- func (s PreProcessingTrace) String() string
- type PromptTemplate
- type PropertyParameters
- type QueryTransformationConfiguration
- type Rationale
- type RepromptResponse
- type RequestBody
- type ResourceNotFoundException
- func (s *ResourceNotFoundException) Code() string
- func (s *ResourceNotFoundException) Error() string
- func (s ResourceNotFoundException) GoString() string
- func (s *ResourceNotFoundException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ResourceNotFoundException) Message() string
- func (s *ResourceNotFoundException) OrigErr() error
- func (s *ResourceNotFoundException) RequestID() string
- func (s *ResourceNotFoundException) StatusCode() int
- func (s ResourceNotFoundException) String() string
- func (s *ResourceNotFoundException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ResponseStreamEvent
- type ResponseStreamReader
- type ResponseStreamUnknownEvent
- type RetrievalFilter
- type RetrievalResultConfluenceLocation
- type RetrievalResultContent
- type RetrievalResultLocation
- func (s RetrievalResultLocation) GoString() string
- func (s *RetrievalResultLocation) SetConfluenceLocation(v *RetrievalResultConfluenceLocation) *RetrievalResultLocation
- func (s *RetrievalResultLocation) SetS3Location(v *RetrievalResultS3Location) *RetrievalResultLocation
- func (s *RetrievalResultLocation) SetSalesforceLocation(v *RetrievalResultSalesforceLocation) *RetrievalResultLocation
- func (s *RetrievalResultLocation) SetSharePointLocation(v *RetrievalResultSharePointLocation) *RetrievalResultLocation
- func (s *RetrievalResultLocation) SetType(v string) *RetrievalResultLocation
- func (s *RetrievalResultLocation) SetWebLocation(v *RetrievalResultWebLocation) *RetrievalResultLocation
- func (s RetrievalResultLocation) String() string
- type RetrievalResultS3Location
- type RetrievalResultSalesforceLocation
- type RetrievalResultSharePointLocation
- type RetrievalResultWebLocation
- type RetrieveAndGenerateConfiguration
- func (s RetrieveAndGenerateConfiguration) GoString() string
- func (s *RetrieveAndGenerateConfiguration) SetExternalSourcesConfiguration(v *ExternalSourcesRetrieveAndGenerateConfiguration) *RetrieveAndGenerateConfiguration
- func (s *RetrieveAndGenerateConfiguration) SetKnowledgeBaseConfiguration(v *KnowledgeBaseRetrieveAndGenerateConfiguration) *RetrieveAndGenerateConfiguration
- func (s *RetrieveAndGenerateConfiguration) SetType(v string) *RetrieveAndGenerateConfiguration
- func (s RetrieveAndGenerateConfiguration) String() string
- func (s *RetrieveAndGenerateConfiguration) Validate() error
- type RetrieveAndGenerateInput
- func (s RetrieveAndGenerateInput) GoString() string
- func (s *RetrieveAndGenerateInput) SetInput(v *RetrieveAndGenerateInput_) *RetrieveAndGenerateInput
- func (s *RetrieveAndGenerateInput) SetRetrieveAndGenerateConfiguration(v *RetrieveAndGenerateConfiguration) *RetrieveAndGenerateInput
- func (s *RetrieveAndGenerateInput) SetSessionConfiguration(v *RetrieveAndGenerateSessionConfiguration) *RetrieveAndGenerateInput
- func (s *RetrieveAndGenerateInput) SetSessionId(v string) *RetrieveAndGenerateInput
- func (s RetrieveAndGenerateInput) String() string
- func (s *RetrieveAndGenerateInput) Validate() error
- type RetrieveAndGenerateInput_
- type RetrieveAndGenerateOutput
- func (s RetrieveAndGenerateOutput) GoString() string
- func (s *RetrieveAndGenerateOutput) SetCitations(v []*Citation) *RetrieveAndGenerateOutput
- func (s *RetrieveAndGenerateOutput) SetGuardrailAction(v string) *RetrieveAndGenerateOutput
- func (s *RetrieveAndGenerateOutput) SetOutput(v *RetrieveAndGenerateOutput_) *RetrieveAndGenerateOutput
- func (s *RetrieveAndGenerateOutput) SetSessionId(v string) *RetrieveAndGenerateOutput
- func (s RetrieveAndGenerateOutput) String() string
- type RetrieveAndGenerateOutput_
- type RetrieveAndGenerateSessionConfiguration
- func (s RetrieveAndGenerateSessionConfiguration) GoString() string
- func (s *RetrieveAndGenerateSessionConfiguration) SetKmsKeyArn(v string) *RetrieveAndGenerateSessionConfiguration
- func (s RetrieveAndGenerateSessionConfiguration) String() string
- func (s *RetrieveAndGenerateSessionConfiguration) Validate() error
- type RetrieveInput
- func (s RetrieveInput) GoString() string
- func (s *RetrieveInput) SetKnowledgeBaseId(v string) *RetrieveInput
- func (s *RetrieveInput) SetNextToken(v string) *RetrieveInput
- func (s *RetrieveInput) SetRetrievalConfiguration(v *KnowledgeBaseRetrievalConfiguration) *RetrieveInput
- func (s *RetrieveInput) SetRetrievalQuery(v *KnowledgeBaseQuery) *RetrieveInput
- func (s RetrieveInput) String() string
- func (s *RetrieveInput) Validate() error
- type RetrieveOutput
- type RetrievedReference
- type ReturnControlPayload
- func (s ReturnControlPayload) GoString() string
- func (s *ReturnControlPayload) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ReturnControlPayload) SetInvocationId(v string) *ReturnControlPayload
- func (s *ReturnControlPayload) SetInvocationInputs(v []*InvocationInputMember) *ReturnControlPayload
- func (s ReturnControlPayload) String() string
- func (s *ReturnControlPayload) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type S3ObjectDoc
- type S3ObjectFile
- type ServiceQuotaExceededException
- func (s *ServiceQuotaExceededException) Code() string
- func (s *ServiceQuotaExceededException) Error() string
- func (s ServiceQuotaExceededException) GoString() string
- func (s *ServiceQuotaExceededException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ServiceQuotaExceededException) Message() string
- func (s *ServiceQuotaExceededException) OrigErr() error
- func (s *ServiceQuotaExceededException) RequestID() string
- func (s *ServiceQuotaExceededException) StatusCode() int
- func (s ServiceQuotaExceededException) String() string
- func (s *ServiceQuotaExceededException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type SessionState
- func (s SessionState) GoString() string
- func (s *SessionState) SetFiles(v []*InputFile) *SessionState
- func (s *SessionState) SetInvocationId(v string) *SessionState
- func (s *SessionState) SetKnowledgeBaseConfigurations(v []*KnowledgeBaseConfiguration) *SessionState
- func (s *SessionState) SetPromptSessionAttributes(v map[string]*string) *SessionState
- func (s *SessionState) SetReturnControlInvocationResults(v []*InvocationResultMember) *SessionState
- func (s *SessionState) SetSessionAttributes(v map[string]*string) *SessionState
- func (s SessionState) String() string
- func (s *SessionState) Validate() error
- type Span
- type TextInferenceConfig
- func (s TextInferenceConfig) GoString() string
- func (s *TextInferenceConfig) SetMaxTokens(v int64) *TextInferenceConfig
- func (s *TextInferenceConfig) SetStopSequences(v []*string) *TextInferenceConfig
- func (s *TextInferenceConfig) SetTemperature(v float64) *TextInferenceConfig
- func (s *TextInferenceConfig) SetTopP(v float64) *TextInferenceConfig
- func (s TextInferenceConfig) String() string
- type TextResponsePart
- type ThrottlingException
- func (s *ThrottlingException) Code() string
- func (s *ThrottlingException) Error() string
- func (s ThrottlingException) GoString() string
- func (s *ThrottlingException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ThrottlingException) Message() string
- func (s *ThrottlingException) OrigErr() error
- func (s *ThrottlingException) RequestID() string
- func (s *ThrottlingException) StatusCode() int
- func (s ThrottlingException) String() string
- func (s *ThrottlingException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type Trace
- func (s Trace) GoString() string
- func (s *Trace) SetFailureTrace(v *FailureTrace) *Trace
- func (s *Trace) SetGuardrailTrace(v *GuardrailTrace) *Trace
- func (s *Trace) SetOrchestrationTrace(v *OrchestrationTrace) *Trace
- func (s *Trace) SetPostProcessingTrace(v *PostProcessingTrace) *Trace
- func (s *Trace) SetPreProcessingTrace(v *PreProcessingTrace) *Trace
- func (s Trace) String() string
- type TracePart
- func (s TracePart) GoString() string
- func (s *TracePart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *TracePart) SetAgentAliasId(v string) *TracePart
- func (s *TracePart) SetAgentId(v string) *TracePart
- func (s *TracePart) SetAgentVersion(v string) *TracePart
- func (s *TracePart) SetSessionId(v string) *TracePart
- func (s *TracePart) SetTrace(v *Trace) *TracePart
- func (s TracePart) String() string
- func (s *TracePart) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
- type ValidationException
- func (s *ValidationException) Code() string
- func (s *ValidationException) Error() string
- func (s ValidationException) GoString() string
- func (s *ValidationException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
- func (s *ValidationException) Message() string
- func (s *ValidationException) OrigErr() error
- func (s *ValidationException) RequestID() string
- func (s *ValidationException) StatusCode() int
- func (s ValidationException) String() string
- func (s *ValidationException) UnmarshalEvent(payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message) error
Constants ¶
const ( // CreationModeDefault is a CreationMode enum value CreationModeDefault = "DEFAULT" // CreationModeOverridden is a CreationMode enum value CreationModeOverridden = "OVERRIDDEN" )
const ( // ExecutionTypeLambda is a ExecutionType enum value ExecutionTypeLambda = "LAMBDA" // ExecutionTypeReturnControl is a ExecutionType enum value ExecutionTypeReturnControl = "RETURN_CONTROL" )
const ( // ExternalSourceTypeS3 is a ExternalSourceType enum value ExternalSourceTypeS3 = "S3" // ExternalSourceTypeByteContent is a ExternalSourceType enum value ExternalSourceTypeByteContent = "BYTE_CONTENT" )
const ( // FileSourceTypeS3 is a FileSourceType enum value FileSourceTypeS3 = "S3" // FileSourceTypeByteContent is a FileSourceType enum value FileSourceTypeByteContent = "BYTE_CONTENT" )
const ( // FileUseCaseCodeInterpreter is a FileUseCase enum value FileUseCaseCodeInterpreter = "CODE_INTERPRETER" // FileUseCaseChat is a FileUseCase enum value FileUseCaseChat = "CHAT" )
const ( // GuadrailActionIntervened is a GuadrailAction enum value GuadrailActionIntervened = "INTERVENED" // GuadrailActionNone is a GuadrailAction enum value GuadrailActionNone = "NONE" )
const ( // GuardrailActionIntervened is a GuardrailAction enum value GuardrailActionIntervened = "INTERVENED" // GuardrailActionNone is a GuardrailAction enum value GuardrailActionNone = "NONE" )
const ( // GuardrailContentFilterConfidenceNone is a GuardrailContentFilterConfidence enum value GuardrailContentFilterConfidenceNone = "NONE" // GuardrailContentFilterConfidenceLow is a GuardrailContentFilterConfidence enum value GuardrailContentFilterConfidenceLow = "LOW" // GuardrailContentFilterConfidenceMedium is a GuardrailContentFilterConfidence enum value GuardrailContentFilterConfidenceMedium = "MEDIUM" // GuardrailContentFilterConfidenceHigh is a GuardrailContentFilterConfidence enum value GuardrailContentFilterConfidenceHigh = "HIGH" )
const ( // GuardrailContentFilterTypeInsults is a GuardrailContentFilterType enum value GuardrailContentFilterTypeInsults = "INSULTS" // GuardrailContentFilterTypeHate is a GuardrailContentFilterType enum value GuardrailContentFilterTypeHate = "HATE" // GuardrailContentFilterTypeSexual is a GuardrailContentFilterType enum value GuardrailContentFilterTypeSexual = "SEXUAL" // GuardrailContentFilterTypeViolence is a GuardrailContentFilterType enum value GuardrailContentFilterTypeViolence = "VIOLENCE" // GuardrailContentFilterTypeMisconduct is a GuardrailContentFilterType enum value GuardrailContentFilterTypeMisconduct = "MISCONDUCT" // GuardrailContentFilterTypePromptAttack is a GuardrailContentFilterType enum value GuardrailContentFilterTypePromptAttack = "PROMPT_ATTACK" )
const ( // GuardrailPiiEntityTypeAddress is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeAddress = "ADDRESS" // GuardrailPiiEntityTypeAge is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeAge = "AGE" // GuardrailPiiEntityTypeAwsAccessKey is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeAwsAccessKey = "AWS_ACCESS_KEY" // GuardrailPiiEntityTypeAwsSecretKey is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeAwsSecretKey = "AWS_SECRET_KEY" // GuardrailPiiEntityTypeCaHealthNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeCaHealthNumber = "CA_HEALTH_NUMBER" // GuardrailPiiEntityTypeCaSocialInsuranceNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeCaSocialInsuranceNumber = "CA_SOCIAL_INSURANCE_NUMBER" // GuardrailPiiEntityTypeCreditDebitCardCvv is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeCreditDebitCardCvv = "CREDIT_DEBIT_CARD_CVV" // GuardrailPiiEntityTypeCreditDebitCardExpiry is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeCreditDebitCardExpiry = "CREDIT_DEBIT_CARD_EXPIRY" // GuardrailPiiEntityTypeCreditDebitCardNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeCreditDebitCardNumber = "CREDIT_DEBIT_CARD_NUMBER" // GuardrailPiiEntityTypeDriverId is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeDriverId = "DRIVER_ID" // GuardrailPiiEntityTypeEmail is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeEmail = "EMAIL" // GuardrailPiiEntityTypeInternationalBankAccountNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeInternationalBankAccountNumber = "INTERNATIONAL_BANK_ACCOUNT_NUMBER" // GuardrailPiiEntityTypeIpAddress is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeIpAddress = "IP_ADDRESS" // GuardrailPiiEntityTypeLicensePlate is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeLicensePlate = "LICENSE_PLATE" // GuardrailPiiEntityTypeMacAddress is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeMacAddress = "MAC_ADDRESS" // GuardrailPiiEntityTypeName is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeName = "NAME" // GuardrailPiiEntityTypePassword is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypePassword = "PASSWORD" // GuardrailPiiEntityTypePhone is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypePhone = "PHONE" // GuardrailPiiEntityTypePin is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypePin = "PIN" // GuardrailPiiEntityTypeSwiftCode is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeSwiftCode = "SWIFT_CODE" // GuardrailPiiEntityTypeUkNationalHealthServiceNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUkNationalHealthServiceNumber = "UK_NATIONAL_HEALTH_SERVICE_NUMBER" // GuardrailPiiEntityTypeUkNationalInsuranceNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUkNationalInsuranceNumber = "UK_NATIONAL_INSURANCE_NUMBER" // GuardrailPiiEntityTypeUkUniqueTaxpayerReferenceNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUkUniqueTaxpayerReferenceNumber = "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER" // GuardrailPiiEntityTypeUrl is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUrl = "URL" // GuardrailPiiEntityTypeUsername is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUsername = "USERNAME" // GuardrailPiiEntityTypeUsBankAccountNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUsBankAccountNumber = "US_BANK_ACCOUNT_NUMBER" // GuardrailPiiEntityTypeUsBankRoutingNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUsBankRoutingNumber = "US_BANK_ROUTING_NUMBER" // GuardrailPiiEntityTypeUsIndividualTaxIdentificationNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUsIndividualTaxIdentificationNumber = "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER" // GuardrailPiiEntityTypeUsPassportNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUsPassportNumber = "US_PASSPORT_NUMBER" // GuardrailPiiEntityTypeUsSocialSecurityNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeUsSocialSecurityNumber = "US_SOCIAL_SECURITY_NUMBER" // GuardrailPiiEntityTypeVehicleIdentificationNumber is a GuardrailPiiEntityType enum value GuardrailPiiEntityTypeVehicleIdentificationNumber = "VEHICLE_IDENTIFICATION_NUMBER" )
const ( // GuardrailSensitiveInformationPolicyActionBlocked is a GuardrailSensitiveInformationPolicyAction enum value GuardrailSensitiveInformationPolicyActionBlocked = "BLOCKED" // GuardrailSensitiveInformationPolicyActionAnonymized is a GuardrailSensitiveInformationPolicyAction enum value GuardrailSensitiveInformationPolicyActionAnonymized = "ANONYMIZED" )
const ( // InvocationTypeActionGroup is a InvocationType enum value InvocationTypeActionGroup = "ACTION_GROUP" // InvocationTypeKnowledgeBase is a InvocationType enum value InvocationTypeKnowledgeBase = "KNOWLEDGE_BASE" // InvocationTypeFinish is a InvocationType enum value InvocationTypeFinish = "FINISH" // InvocationTypeActionGroupCodeInterpreter is a InvocationType enum value InvocationTypeActionGroupCodeInterpreter = "ACTION_GROUP_CODE_INTERPRETER" )
const ( // NodeTypeFlowInputNode is a NodeType enum value NodeTypeFlowInputNode = "FlowInputNode" // NodeTypeFlowOutputNode is a NodeType enum value NodeTypeFlowOutputNode = "FlowOutputNode" // NodeTypeLambdaFunctionNode is a NodeType enum value NodeTypeLambdaFunctionNode = "LambdaFunctionNode" // NodeTypeKnowledgeBaseNode is a NodeType enum value NodeTypeKnowledgeBaseNode = "KnowledgeBaseNode" // NodeTypePromptNode is a NodeType enum value NodeTypePromptNode = "PromptNode" // NodeTypeConditionNode is a NodeType enum value NodeTypeConditionNode = "ConditionNode" // NodeTypeLexNode is a NodeType enum value NodeTypeLexNode = "LexNode" )
const ( // PromptTypePreProcessing is a PromptType enum value PromptTypePreProcessing = "PRE_PROCESSING" // PromptTypeOrchestration is a PromptType enum value PromptTypeOrchestration = "ORCHESTRATION" // PromptTypeKnowledgeBaseResponseGeneration is a PromptType enum value PromptTypeKnowledgeBaseResponseGeneration = "KNOWLEDGE_BASE_RESPONSE_GENERATION" // PromptTypePostProcessing is a PromptType enum value PromptTypePostProcessing = "POST_PROCESSING" )
const ( // ResponseStateFailure is a ResponseState enum value ResponseStateFailure = "FAILURE" // ResponseStateReprompt is a ResponseState enum value ResponseStateReprompt = "REPROMPT" )
const ( // RetrievalResultLocationTypeS3 is a RetrievalResultLocationType enum value RetrievalResultLocationTypeS3 = "S3" // RetrievalResultLocationTypeWeb is a RetrievalResultLocationType enum value RetrievalResultLocationTypeWeb = "WEB" // RetrievalResultLocationTypeConfluence is a RetrievalResultLocationType enum value RetrievalResultLocationTypeConfluence = "CONFLUENCE" // RetrievalResultLocationTypeSalesforce is a RetrievalResultLocationType enum value RetrievalResultLocationTypeSalesforce = "SALESFORCE" RetrievalResultLocationTypeSharepoint = "SHAREPOINT" )
const ( // RetrieveAndGenerateTypeKnowledgeBase is a RetrieveAndGenerateType enum value RetrieveAndGenerateTypeKnowledgeBase = "KNOWLEDGE_BASE" // RetrieveAndGenerateTypeExternalSources is a RetrieveAndGenerateType enum value RetrieveAndGenerateTypeExternalSources = "EXTERNAL_SOURCES" )
const ( // SearchTypeHybrid is a SearchType enum value SearchTypeHybrid = "HYBRID" // SearchTypeSemantic is a SearchType enum value SearchTypeSemantic = "SEMANTIC" )
const ( // SourceActionGroup is a Source enum value SourceActionGroup = "ACTION_GROUP" // SourceKnowledgeBase is a Source enum value SourceKnowledgeBase = "KNOWLEDGE_BASE" // SourceParser is a Source enum value SourceParser = "PARSER" )
const ( // TypeActionGroup is a Type enum value TypeActionGroup = "ACTION_GROUP" // TypeKnowledgeBase is a Type enum value TypeKnowledgeBase = "KNOWLEDGE_BASE" // TypeFinish is a Type enum value TypeFinish = "FINISH" // TypeAskUser is a Type enum value TypeAskUser = "ASK_USER" // TypeReprompt is a Type enum value TypeReprompt = "REPROMPT" )
const ( // ErrCodeAccessDeniedException for service response error code // "AccessDeniedException". // // The request is denied because of missing access permissions. Check your permissions // and retry your request. ErrCodeAccessDeniedException = "AccessDeniedException" // ErrCodeBadGatewayException for service response error code // "BadGatewayException". // // There was an issue with a dependency due to a server issue. Retry your request. ErrCodeBadGatewayException = "BadGatewayException" // ErrCodeConflictException for service response error code // "ConflictException". // // There was a conflict performing an operation. Resolve the conflict and retry // your request. ErrCodeConflictException = "ConflictException" // ErrCodeDependencyFailedException for service response error code // "DependencyFailedException". // // There was an issue with a dependency. Check the resource configurations and // retry the request. ErrCodeDependencyFailedException = "DependencyFailedException" // ErrCodeInternalServerException for service response error code // "InternalServerException". // // An internal server error occurred. Retry your request. ErrCodeInternalServerException = "InternalServerException" // ErrCodeResourceNotFoundException for service response error code // "ResourceNotFoundException". // // The specified resource Amazon Resource Name (ARN) was not found. Check the // Amazon Resource Name (ARN) and try your request again. ErrCodeResourceNotFoundException = "ResourceNotFoundException" // ErrCodeServiceQuotaExceededException for service response error code // "ServiceQuotaExceededException". // // The number of requests exceeds the service quota. Resubmit your request later. ErrCodeServiceQuotaExceededException = "ServiceQuotaExceededException" // ErrCodeThrottlingException for service response error code // "ThrottlingException". // // The number of requests exceeds the limit. Resubmit your request later. ErrCodeThrottlingException = "ThrottlingException" // ErrCodeValidationException for service response error code // "ValidationException". // // Input validation failed. Check your request parameters and retry the request. ErrCodeValidationException = "ValidationException" )
const ( ServiceName = "Bedrock Agent Runtime" // Name of service. EndpointsID = "bedrock-agent-runtime" // ID to lookup a service endpoint with. ServiceID = "Bedrock Agent Runtime" // ServiceID is a unique identifier of a specific service. )
Service information constants
const (
// FlowCompletionReasonSuccess is a FlowCompletionReason enum value
FlowCompletionReasonSuccess = "SUCCESS"
)
const (
// GuardrailContentPolicyActionBlocked is a GuardrailContentPolicyAction enum value
GuardrailContentPolicyActionBlocked = "BLOCKED"
)
const (
// GuardrailManagedWordTypeProfanity is a GuardrailManagedWordType enum value
GuardrailManagedWordTypeProfanity = "PROFANITY"
)
const (
// GuardrailTopicPolicyActionBlocked is a GuardrailTopicPolicyAction enum value
GuardrailTopicPolicyActionBlocked = "BLOCKED"
)
const (
// GuardrailTopicTypeDeny is a GuardrailTopicType enum value
GuardrailTopicTypeDeny = "DENY"
)
const (
// GuardrailWordPolicyActionBlocked is a GuardrailWordPolicyAction enum value
GuardrailWordPolicyActionBlocked = "BLOCKED"
)
const (
// MemoryTypeSessionSummary is a MemoryType enum value
MemoryTypeSessionSummary = "SESSION_SUMMARY"
)
const (
// QueryTransformationTypeQueryDecomposition is a QueryTransformationType enum value
QueryTransformationTypeQueryDecomposition = "QUERY_DECOMPOSITION"
)
Variables ¶
This section is empty.
Functions ¶
func CreationMode_Values ¶
func CreationMode_Values() []string
CreationMode_Values returns all elements of the CreationMode enum
func ExecutionType_Values ¶ added in v1.54.18
func ExecutionType_Values() []string
ExecutionType_Values returns all elements of the ExecutionType enum
func ExternalSourceType_Values ¶ added in v1.51.27
func ExternalSourceType_Values() []string
ExternalSourceType_Values returns all elements of the ExternalSourceType enum
func FileSourceType_Values ¶ added in v1.54.18
func FileSourceType_Values() []string
FileSourceType_Values returns all elements of the FileSourceType enum
func FileUseCase_Values ¶ added in v1.54.18
func FileUseCase_Values() []string
FileUseCase_Values returns all elements of the FileUseCase enum
func FlowCompletionReason_Values ¶ added in v1.54.18
func FlowCompletionReason_Values() []string
FlowCompletionReason_Values returns all elements of the FlowCompletionReason enum
func GuadrailAction_Values ¶ added in v1.52.6
func GuadrailAction_Values() []string
GuadrailAction_Values returns all elements of the GuadrailAction enum
func GuardrailAction_Values ¶ added in v1.53.6
func GuardrailAction_Values() []string
GuardrailAction_Values returns all elements of the GuardrailAction enum
func GuardrailContentFilterConfidence_Values ¶ added in v1.53.6
func GuardrailContentFilterConfidence_Values() []string
GuardrailContentFilterConfidence_Values returns all elements of the GuardrailContentFilterConfidence enum
func GuardrailContentFilterType_Values ¶ added in v1.53.6
func GuardrailContentFilterType_Values() []string
GuardrailContentFilterType_Values returns all elements of the GuardrailContentFilterType enum
func GuardrailContentPolicyAction_Values ¶ added in v1.53.6
func GuardrailContentPolicyAction_Values() []string
GuardrailContentPolicyAction_Values returns all elements of the GuardrailContentPolicyAction enum
func GuardrailManagedWordType_Values ¶ added in v1.53.6
func GuardrailManagedWordType_Values() []string
GuardrailManagedWordType_Values returns all elements of the GuardrailManagedWordType enum
func GuardrailPiiEntityType_Values ¶ added in v1.53.6
func GuardrailPiiEntityType_Values() []string
GuardrailPiiEntityType_Values returns all elements of the GuardrailPiiEntityType enum
func GuardrailSensitiveInformationPolicyAction_Values ¶ added in v1.53.6
func GuardrailSensitiveInformationPolicyAction_Values() []string
GuardrailSensitiveInformationPolicyAction_Values returns all elements of the GuardrailSensitiveInformationPolicyAction enum
func GuardrailTopicPolicyAction_Values ¶ added in v1.53.6
func GuardrailTopicPolicyAction_Values() []string
GuardrailTopicPolicyAction_Values returns all elements of the GuardrailTopicPolicyAction enum
func GuardrailTopicType_Values ¶ added in v1.53.6
func GuardrailTopicType_Values() []string
GuardrailTopicType_Values returns all elements of the GuardrailTopicType enum
func GuardrailWordPolicyAction_Values ¶ added in v1.53.6
func GuardrailWordPolicyAction_Values() []string
GuardrailWordPolicyAction_Values returns all elements of the GuardrailWordPolicyAction enum
func InvocationType_Values ¶
func InvocationType_Values() []string
InvocationType_Values returns all elements of the InvocationType enum
func MemoryType_Values ¶ added in v1.54.18
func MemoryType_Values() []string
MemoryType_Values returns all elements of the MemoryType enum
func NodeType_Values ¶ added in v1.54.18
func NodeType_Values() []string
NodeType_Values returns all elements of the NodeType enum
func PromptType_Values ¶
func PromptType_Values() []string
PromptType_Values returns all elements of the PromptType enum
func QueryTransformationType_Values ¶ added in v1.54.18
func QueryTransformationType_Values() []string
QueryTransformationType_Values returns all elements of the QueryTransformationType enum
func ResponseState_Values ¶ added in v1.51.26
func ResponseState_Values() []string
ResponseState_Values returns all elements of the ResponseState enum
func RetrievalResultLocationType_Values ¶
func RetrievalResultLocationType_Values() []string
RetrievalResultLocationType_Values returns all elements of the RetrievalResultLocationType enum
func RetrieveAndGenerateType_Values ¶
func RetrieveAndGenerateType_Values() []string
RetrieveAndGenerateType_Values returns all elements of the RetrieveAndGenerateType enum
func SearchType_Values ¶ added in v1.50.28
func SearchType_Values() []string
SearchType_Values returns all elements of the SearchType enum
func Source_Values ¶
func Source_Values() []string
Source_Values returns all elements of the Source enum
Types ¶
type AccessDeniedException ¶
type AccessDeniedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
The request is denied because of missing access permissions. Check your permissions and retry your request.
func (*AccessDeniedException) Code ¶
func (s *AccessDeniedException) Code() string
Code returns the exception type name.
func (*AccessDeniedException) Error ¶
func (s *AccessDeniedException) Error() string
func (AccessDeniedException) GoString ¶
func (s AccessDeniedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*AccessDeniedException) MarshalEvent ¶
func (s *AccessDeniedException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*AccessDeniedException) Message ¶
func (s *AccessDeniedException) Message() string
Message returns the exception's message.
func (*AccessDeniedException) OrigErr ¶
func (s *AccessDeniedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*AccessDeniedException) RequestID ¶
func (s *AccessDeniedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*AccessDeniedException) StatusCode ¶
func (s *AccessDeniedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (AccessDeniedException) String ¶
func (s AccessDeniedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*AccessDeniedException) UnmarshalEvent ¶
func (s *AccessDeniedException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the AccessDeniedException value. This method is only used internally within the SDK's EventStream handling.
type ActionGroupInvocationInput_ ¶
type ActionGroupInvocationInput_ struct { // The name of the action group. // // ActionGroupName is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActionGroupInvocationInput_'s // String and GoString methods. ActionGroupName *string `locationName:"actionGroupName" type:"string" sensitive:"true"` // The path to the API to call, based off the action group. // // ApiPath is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActionGroupInvocationInput_'s // String and GoString methods. ApiPath *string `locationName:"apiPath" type:"string" sensitive:"true"` // How fulfillment of the action is handled. For more information, see Handling // fulfillment of the action (https://docs.aws.amazon.com/bedrock/latest/userguide/action-handle.html). ExecutionType *string `locationName:"executionType" type:"string" enum:"ExecutionType"` // The function in the action group to call. // // Function is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActionGroupInvocationInput_'s // String and GoString methods. Function *string `locationName:"function" type:"string" sensitive:"true"` // The unique identifier of the invocation. Only returned if the executionType // is RETURN_CONTROL. InvocationId *string `locationName:"invocationId" type:"string"` // The parameters in the Lambda input event. Parameters []*Parameter `locationName:"parameters" type:"list"` // The parameters in the request body for the Lambda input event. RequestBody *RequestBody `locationName:"requestBody" type:"structure"` // The API method being used, based off the action group. // // Verb is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActionGroupInvocationInput_'s // String and GoString methods. Verb *string `locationName:"verb" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Contains information about the action group being invoked. For more information about the possible structures, see the InvocationInput tab in OrchestrationTrace (https://docs.aws.amazon.com/bedrock/latest/userguide/trace-orchestration.html) in the Amazon Bedrock User Guide.
func (ActionGroupInvocationInput_) GoString ¶
func (s ActionGroupInvocationInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ActionGroupInvocationInput_) SetActionGroupName ¶
func (s *ActionGroupInvocationInput_) SetActionGroupName(v string) *ActionGroupInvocationInput_
SetActionGroupName sets the ActionGroupName field's value.
func (*ActionGroupInvocationInput_) SetApiPath ¶
func (s *ActionGroupInvocationInput_) SetApiPath(v string) *ActionGroupInvocationInput_
SetApiPath sets the ApiPath field's value.
func (*ActionGroupInvocationInput_) SetExecutionType ¶ added in v1.54.18
func (s *ActionGroupInvocationInput_) SetExecutionType(v string) *ActionGroupInvocationInput_
SetExecutionType sets the ExecutionType field's value.
func (*ActionGroupInvocationInput_) SetFunction ¶ added in v1.51.26
func (s *ActionGroupInvocationInput_) SetFunction(v string) *ActionGroupInvocationInput_
SetFunction sets the Function field's value.
func (*ActionGroupInvocationInput_) SetInvocationId ¶ added in v1.54.18
func (s *ActionGroupInvocationInput_) SetInvocationId(v string) *ActionGroupInvocationInput_
SetInvocationId sets the InvocationId field's value.
func (*ActionGroupInvocationInput_) SetParameters ¶
func (s *ActionGroupInvocationInput_) SetParameters(v []*Parameter) *ActionGroupInvocationInput_
SetParameters sets the Parameters field's value.
func (*ActionGroupInvocationInput_) SetRequestBody ¶
func (s *ActionGroupInvocationInput_) SetRequestBody(v *RequestBody) *ActionGroupInvocationInput_
SetRequestBody sets the RequestBody field's value.
func (*ActionGroupInvocationInput_) SetVerb ¶
func (s *ActionGroupInvocationInput_) SetVerb(v string) *ActionGroupInvocationInput_
SetVerb sets the Verb field's value.
func (ActionGroupInvocationInput_) String ¶
func (s ActionGroupInvocationInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ActionGroupInvocationOutput_ ¶
type ActionGroupInvocationOutput_ struct { // The JSON-formatted string returned by the API invoked by the action group. // // Text is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ActionGroupInvocationOutput_'s // String and GoString methods. Text *string `locationName:"text" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Contains the JSON-formatted string returned by the API invoked by the action group.
func (ActionGroupInvocationOutput_) GoString ¶
func (s ActionGroupInvocationOutput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ActionGroupInvocationOutput_) SetText ¶
func (s *ActionGroupInvocationOutput_) SetText(v string) *ActionGroupInvocationOutput_
SetText sets the Text field's value.
func (ActionGroupInvocationOutput_) String ¶
func (s ActionGroupInvocationOutput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ApiInvocationInput_ ¶ added in v1.51.26
type ApiInvocationInput_ struct { // The action group that the API operation belongs to. // // ActionGroup is a required field ActionGroup *string `locationName:"actionGroup" type:"string" required:"true"` // The path to the API operation. // // ApiPath is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ApiInvocationInput_'s // String and GoString methods. ApiPath *string `locationName:"apiPath" type:"string" sensitive:"true"` // The HTTP method of the API operation. HttpMethod *string `locationName:"httpMethod" type:"string"` // The parameters to provide for the API request, as the agent elicited from // the user. Parameters []*ApiParameter `locationName:"parameters" type:"list"` // The request body to provide for the API request, as the agent elicited from // the user. RequestBody *ApiRequestBody `locationName:"requestBody" type:"structure"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (ApiInvocationInput_) GoString ¶ added in v1.51.26
func (s ApiInvocationInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ApiInvocationInput_) SetActionGroup ¶ added in v1.51.26
func (s *ApiInvocationInput_) SetActionGroup(v string) *ApiInvocationInput_
SetActionGroup sets the ActionGroup field's value.
func (*ApiInvocationInput_) SetApiPath ¶ added in v1.51.26
func (s *ApiInvocationInput_) SetApiPath(v string) *ApiInvocationInput_
SetApiPath sets the ApiPath field's value.
func (*ApiInvocationInput_) SetHttpMethod ¶ added in v1.51.26
func (s *ApiInvocationInput_) SetHttpMethod(v string) *ApiInvocationInput_
SetHttpMethod sets the HttpMethod field's value.
func (*ApiInvocationInput_) SetParameters ¶ added in v1.51.26
func (s *ApiInvocationInput_) SetParameters(v []*ApiParameter) *ApiInvocationInput_
SetParameters sets the Parameters field's value.
func (*ApiInvocationInput_) SetRequestBody ¶ added in v1.51.26
func (s *ApiInvocationInput_) SetRequestBody(v *ApiRequestBody) *ApiInvocationInput_
SetRequestBody sets the RequestBody field's value.
func (ApiInvocationInput_) String ¶ added in v1.51.26
func (s ApiInvocationInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ApiParameter ¶ added in v1.51.26
type ApiParameter struct { // The name of the parameter. Name *string `locationName:"name" type:"string"` // The data type for the parameter. Type *string `locationName:"type" type:"string"` // The value of the parameter. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
Information about a parameter to provide to the API request.
This data type is used in the following API operations:
- InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (ApiParameter) GoString ¶ added in v1.51.26
func (s ApiParameter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ApiParameter) SetName ¶ added in v1.51.26
func (s *ApiParameter) SetName(v string) *ApiParameter
SetName sets the Name field's value.
func (*ApiParameter) SetType ¶ added in v1.51.26
func (s *ApiParameter) SetType(v string) *ApiParameter
SetType sets the Type field's value.
func (*ApiParameter) SetValue ¶ added in v1.51.26
func (s *ApiParameter) SetValue(v string) *ApiParameter
SetValue sets the Value field's value.
func (ApiParameter) String ¶ added in v1.51.26
func (s ApiParameter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ApiRequestBody ¶ added in v1.51.26
type ApiRequestBody struct { // The content of the request body. The key of the object in this field is a // media type defining the format of the request body. Content map[string]*PropertyParameters `locationName:"content" type:"map"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (ApiRequestBody) GoString ¶ added in v1.51.26
func (s ApiRequestBody) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ApiRequestBody) SetContent ¶ added in v1.51.26
func (s *ApiRequestBody) SetContent(v map[string]*PropertyParameters) *ApiRequestBody
SetContent sets the Content field's value.
func (ApiRequestBody) String ¶ added in v1.51.26
func (s ApiRequestBody) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ApiResult ¶ added in v1.51.26
type ApiResult struct { // The action group that the API operation belongs to. // // ActionGroup is a required field ActionGroup *string `locationName:"actionGroup" type:"string" required:"true"` // The path to the API operation. // // ApiPath is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ApiResult's // String and GoString methods. ApiPath *string `locationName:"apiPath" type:"string" sensitive:"true"` // The HTTP method for the API operation. HttpMethod *string `locationName:"httpMethod" type:"string"` // http status code from API execution response (for example: 200, 400, 500). HttpStatusCode *int64 `locationName:"httpStatusCode" type:"integer"` // The response body from the API operation. The key of the object is the content // type (currently, only TEXT is supported). The response may be returned directly // or from the Lambda function. ResponseBody map[string]*ContentBody `locationName:"responseBody" type:"map"` // Controls the final response state returned to end user when API/Function // execution failed. When this state is FAILURE, the request would fail with // dependency failure exception. When this state is REPROMPT, the API/function // response will be sent to model for re-prompt ResponseState *string `locationName:"responseState" type:"string" enum:"ResponseState"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_RequestSyntax)
func (ApiResult) GoString ¶ added in v1.51.26
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ApiResult) SetActionGroup ¶ added in v1.51.26
SetActionGroup sets the ActionGroup field's value.
func (*ApiResult) SetApiPath ¶ added in v1.51.26
SetApiPath sets the ApiPath field's value.
func (*ApiResult) SetHttpMethod ¶ added in v1.51.26
SetHttpMethod sets the HttpMethod field's value.
func (*ApiResult) SetHttpStatusCode ¶ added in v1.51.26
SetHttpStatusCode sets the HttpStatusCode field's value.
func (*ApiResult) SetResponseBody ¶ added in v1.51.26
func (s *ApiResult) SetResponseBody(v map[string]*ContentBody) *ApiResult
SetResponseBody sets the ResponseBody field's value.
func (*ApiResult) SetResponseState ¶ added in v1.51.26
SetResponseState sets the ResponseState field's value.
type Attribution ¶
type Attribution struct { // A list of citations and related information for a part of an agent response. Citations []*Citation `locationName:"citations" type:"list"` // contains filtered or unexported fields }
Contains citations for a part of an agent response.
func (Attribution) GoString ¶
func (s Attribution) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Attribution) SetCitations ¶
func (s *Attribution) SetCitations(v []*Citation) *Attribution
SetCitations sets the Citations field's value.
func (Attribution) String ¶
func (s Attribution) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type BadGatewayException ¶
type BadGatewayException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // The name of the dependency that caused the issue, such as Amazon Bedrock, // Lambda, or STS. ResourceName *string `locationName:"resourceName" type:"string"` // contains filtered or unexported fields }
There was an issue with a dependency due to a server issue. Retry your request.
func (*BadGatewayException) Code ¶
func (s *BadGatewayException) Code() string
Code returns the exception type name.
func (*BadGatewayException) Error ¶
func (s *BadGatewayException) Error() string
func (BadGatewayException) GoString ¶
func (s BadGatewayException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*BadGatewayException) MarshalEvent ¶
func (s *BadGatewayException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*BadGatewayException) Message ¶
func (s *BadGatewayException) Message() string
Message returns the exception's message.
func (*BadGatewayException) OrigErr ¶
func (s *BadGatewayException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*BadGatewayException) RequestID ¶
func (s *BadGatewayException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*BadGatewayException) StatusCode ¶
func (s *BadGatewayException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (BadGatewayException) String ¶
func (s BadGatewayException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*BadGatewayException) UnmarshalEvent ¶
func (s *BadGatewayException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the BadGatewayException value. This method is only used internally within the SDK's EventStream handling.
type BedrockAgentRuntime ¶
BedrockAgentRuntime provides the API operation methods for making requests to Agents for Amazon Bedrock Runtime. See this package's package overview docs for details on the service.
BedrockAgentRuntime methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.
func New ¶
func New(p client.ConfigProvider, cfgs ...*aws.Config) *BedrockAgentRuntime
New creates a new instance of the BedrockAgentRuntime client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.
Example:
mySession := session.Must(session.NewSession()) // Create a BedrockAgentRuntime client from just a session. svc := bedrockagentruntime.New(mySession) // Create a BedrockAgentRuntime client with additional configuration svc := bedrockagentruntime.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
func (*BedrockAgentRuntime) DeleteAgentMemory ¶ added in v1.54.18
func (c *BedrockAgentRuntime) DeleteAgentMemory(input *DeleteAgentMemoryInput) (*DeleteAgentMemoryOutput, error)
DeleteAgentMemory API operation for Agents for Amazon Bedrock Runtime.
Deletes memory from the specified memory identifier.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Agents for Amazon Bedrock Runtime's API operation DeleteAgentMemory for usage and error information.
Returned Error Types:
ConflictException There was a conflict performing an operation. Resolve the conflict and retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ValidationException Input validation failed. Check your request parameters and retry the request.
InternalServerException An internal server error occurred. Retry your request.
DependencyFailedException There was an issue with a dependency. Check the resource configurations and retry the request.
BadGatewayException There was an issue with a dependency due to a server issue. Retry your request.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
AccessDeniedException The request is denied because of missing access permissions. Check your permissions and retry your request.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/DeleteAgentMemory
func (*BedrockAgentRuntime) DeleteAgentMemoryRequest ¶ added in v1.54.18
func (c *BedrockAgentRuntime) DeleteAgentMemoryRequest(input *DeleteAgentMemoryInput) (req *request.Request, output *DeleteAgentMemoryOutput)
DeleteAgentMemoryRequest generates a "aws/request.Request" representing the client's request for the DeleteAgentMemory operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See DeleteAgentMemory for more information on using the DeleteAgentMemory API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the DeleteAgentMemoryRequest method. req, resp := client.DeleteAgentMemoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/DeleteAgentMemory
func (*BedrockAgentRuntime) DeleteAgentMemoryWithContext ¶ added in v1.54.18
func (c *BedrockAgentRuntime) DeleteAgentMemoryWithContext(ctx aws.Context, input *DeleteAgentMemoryInput, opts ...request.Option) (*DeleteAgentMemoryOutput, error)
DeleteAgentMemoryWithContext is the same as DeleteAgentMemory with the addition of the ability to pass a context and additional request options.
See DeleteAgentMemory for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) GetAgentMemory ¶ added in v1.54.18
func (c *BedrockAgentRuntime) GetAgentMemory(input *GetAgentMemoryInput) (*GetAgentMemoryOutput, error)
GetAgentMemory API operation for Agents for Amazon Bedrock Runtime.
Gets the sessions stored in the memory of the agent.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Agents for Amazon Bedrock Runtime's API operation GetAgentMemory for usage and error information.
Returned Error Types:
ConflictException There was a conflict performing an operation. Resolve the conflict and retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ValidationException Input validation failed. Check your request parameters and retry the request.
InternalServerException An internal server error occurred. Retry your request.
DependencyFailedException There was an issue with a dependency. Check the resource configurations and retry the request.
BadGatewayException There was an issue with a dependency due to a server issue. Retry your request.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
AccessDeniedException The request is denied because of missing access permissions. Check your permissions and retry your request.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GetAgentMemory
func (*BedrockAgentRuntime) GetAgentMemoryPages ¶ added in v1.54.18
func (c *BedrockAgentRuntime) GetAgentMemoryPages(input *GetAgentMemoryInput, fn func(*GetAgentMemoryOutput, bool) bool) error
GetAgentMemoryPages iterates over the pages of a GetAgentMemory operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See GetAgentMemory method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a GetAgentMemory operation. pageNum := 0 err := client.GetAgentMemoryPages(params, func(page *bedrockagentruntime.GetAgentMemoryOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*BedrockAgentRuntime) GetAgentMemoryPagesWithContext ¶ added in v1.54.18
func (c *BedrockAgentRuntime) GetAgentMemoryPagesWithContext(ctx aws.Context, input *GetAgentMemoryInput, fn func(*GetAgentMemoryOutput, bool) bool, opts ...request.Option) error
GetAgentMemoryPagesWithContext same as GetAgentMemoryPages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) GetAgentMemoryRequest ¶ added in v1.54.18
func (c *BedrockAgentRuntime) GetAgentMemoryRequest(input *GetAgentMemoryInput) (req *request.Request, output *GetAgentMemoryOutput)
GetAgentMemoryRequest generates a "aws/request.Request" representing the client's request for the GetAgentMemory operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See GetAgentMemory for more information on using the GetAgentMemory API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the GetAgentMemoryRequest method. req, resp := client.GetAgentMemoryRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/GetAgentMemory
func (*BedrockAgentRuntime) GetAgentMemoryWithContext ¶ added in v1.54.18
func (c *BedrockAgentRuntime) GetAgentMemoryWithContext(ctx aws.Context, input *GetAgentMemoryInput, opts ...request.Option) (*GetAgentMemoryOutput, error)
GetAgentMemoryWithContext is the same as GetAgentMemory with the addition of the ability to pass a context and additional request options.
See GetAgentMemory for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) InvokeAgent ¶
func (c *BedrockAgentRuntime) InvokeAgent(input *InvokeAgentInput) (*InvokeAgentOutput, error)
InvokeAgent API operation for Agents for Amazon Bedrock Runtime.
The CLI doesn't support streaming operations in Amazon Bedrock, including InvokeAgent.
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 (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events).
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 is returned in the bytes field of the chunk object.
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.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Agents for Amazon Bedrock Runtime's API operation InvokeAgent for usage and error information.
Returned Error Types:
ConflictException There was a conflict performing an operation. Resolve the conflict and retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ValidationException Input validation failed. Check your request parameters and retry the request.
InternalServerException An internal server error occurred. Retry your request.
DependencyFailedException There was an issue with a dependency. Check the resource configurations and retry the request.
BadGatewayException There was an issue with a dependency due to a server issue. Retry your request.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
AccessDeniedException The request is denied because of missing access permissions. Check your permissions and retry your request.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeAgent
func (*BedrockAgentRuntime) InvokeAgentRequest ¶
func (c *BedrockAgentRuntime) InvokeAgentRequest(input *InvokeAgentInput) (req *request.Request, output *InvokeAgentOutput)
InvokeAgentRequest generates a "aws/request.Request" representing the client's request for the InvokeAgent operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See InvokeAgent for more information on using the InvokeAgent API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InvokeAgentRequest method. req, resp := client.InvokeAgentRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeAgent
func (*BedrockAgentRuntime) InvokeAgentWithContext ¶
func (c *BedrockAgentRuntime) InvokeAgentWithContext(ctx aws.Context, input *InvokeAgentInput, opts ...request.Option) (*InvokeAgentOutput, error)
InvokeAgentWithContext is the same as InvokeAgent with the addition of the ability to pass a context and additional request options.
See InvokeAgent for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) InvokeFlow ¶ added in v1.54.18
func (c *BedrockAgentRuntime) InvokeFlow(input *InvokeFlowInput) (*InvokeFlowOutput, error)
InvokeFlow API operation for Agents for Amazon Bedrock Runtime.
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 (https://docs.aws.amazon.com/bedrock/latest/userguide/flows-test.html) in the Amazon Bedrock User Guide.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Agents for Amazon Bedrock Runtime's API operation InvokeFlow for usage and error information.
Returned Error Types:
ConflictException There was a conflict performing an operation. Resolve the conflict and retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ValidationException Input validation failed. Check your request parameters and retry the request.
InternalServerException An internal server error occurred. Retry your request.
DependencyFailedException There was an issue with a dependency. Check the resource configurations and retry the request.
BadGatewayException There was an issue with a dependency due to a server issue. Retry your request.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
AccessDeniedException The request is denied because of missing access permissions. Check your permissions and retry your request.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeFlow
func (*BedrockAgentRuntime) InvokeFlowRequest ¶ added in v1.54.18
func (c *BedrockAgentRuntime) InvokeFlowRequest(input *InvokeFlowInput) (req *request.Request, output *InvokeFlowOutput)
InvokeFlowRequest generates a "aws/request.Request" representing the client's request for the InvokeFlow operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See InvokeFlow for more information on using the InvokeFlow API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the InvokeFlowRequest method. req, resp := client.InvokeFlowRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/InvokeFlow
func (*BedrockAgentRuntime) InvokeFlowWithContext ¶ added in v1.54.18
func (c *BedrockAgentRuntime) InvokeFlowWithContext(ctx aws.Context, input *InvokeFlowInput, opts ...request.Option) (*InvokeFlowOutput, error)
InvokeFlowWithContext is the same as InvokeFlow with the addition of the ability to pass a context and additional request options.
See InvokeFlow for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) Retrieve ¶
func (c *BedrockAgentRuntime) Retrieve(input *RetrieveInput) (*RetrieveOutput, error)
Retrieve API operation for Agents for Amazon Bedrock Runtime.
Queries a knowledge base and retrieves information from it.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Agents for Amazon Bedrock Runtime's API operation Retrieve for usage and error information.
Returned Error Types:
ConflictException There was a conflict performing an operation. Resolve the conflict and retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ValidationException Input validation failed. Check your request parameters and retry the request.
InternalServerException An internal server error occurred. Retry your request.
DependencyFailedException There was an issue with a dependency. Check the resource configurations and retry the request.
BadGatewayException There was an issue with a dependency due to a server issue. Retry your request.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
AccessDeniedException The request is denied because of missing access permissions. Check your permissions and retry your request.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Retrieve
func (*BedrockAgentRuntime) RetrieveAndGenerate ¶
func (c *BedrockAgentRuntime) RetrieveAndGenerate(input *RetrieveAndGenerateInput) (*RetrieveAndGenerateOutput, error)
RetrieveAndGenerate API operation for Agents for Amazon Bedrock Runtime.
Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.
Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.
See the AWS API reference guide for Agents for Amazon Bedrock Runtime's API operation RetrieveAndGenerate for usage and error information.
Returned Error Types:
ConflictException There was a conflict performing an operation. Resolve the conflict and retry your request.
ResourceNotFoundException The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
ValidationException Input validation failed. Check your request parameters and retry the request.
InternalServerException An internal server error occurred. Retry your request.
DependencyFailedException There was an issue with a dependency. Check the resource configurations and retry the request.
BadGatewayException There was an issue with a dependency due to a server issue. Retry your request.
ThrottlingException The number of requests exceeds the limit. Resubmit your request later.
AccessDeniedException The request is denied because of missing access permissions. Check your permissions and retry your request.
ServiceQuotaExceededException The number of requests exceeds the service quota. Resubmit your request later.
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrieveAndGenerate
func (*BedrockAgentRuntime) RetrieveAndGenerateRequest ¶
func (c *BedrockAgentRuntime) RetrieveAndGenerateRequest(input *RetrieveAndGenerateInput) (req *request.Request, output *RetrieveAndGenerateOutput)
RetrieveAndGenerateRequest generates a "aws/request.Request" representing the client's request for the RetrieveAndGenerate operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See RetrieveAndGenerate for more information on using the RetrieveAndGenerate API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the RetrieveAndGenerateRequest method. req, resp := client.RetrieveAndGenerateRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/RetrieveAndGenerate
func (*BedrockAgentRuntime) RetrieveAndGenerateWithContext ¶
func (c *BedrockAgentRuntime) RetrieveAndGenerateWithContext(ctx aws.Context, input *RetrieveAndGenerateInput, opts ...request.Option) (*RetrieveAndGenerateOutput, error)
RetrieveAndGenerateWithContext is the same as RetrieveAndGenerate with the addition of the ability to pass a context and additional request options.
See RetrieveAndGenerate for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) RetrievePages ¶
func (c *BedrockAgentRuntime) RetrievePages(input *RetrieveInput, fn func(*RetrieveOutput, bool) bool) error
RetrievePages iterates over the pages of a Retrieve operation, calling the "fn" function with the response data for each page. To stop iterating, return false from the fn function.
See Retrieve method for more information on how to use this operation.
Note: This operation can generate multiple requests to a service.
// Example iterating over at most 3 pages of a Retrieve operation. pageNum := 0 err := client.RetrievePages(params, func(page *bedrockagentruntime.RetrieveOutput, lastPage bool) bool { pageNum++ fmt.Println(page) return pageNum <= 3 })
func (*BedrockAgentRuntime) RetrievePagesWithContext ¶
func (c *BedrockAgentRuntime) RetrievePagesWithContext(ctx aws.Context, input *RetrieveInput, fn func(*RetrieveOutput, bool) bool, opts ...request.Option) error
RetrievePagesWithContext same as RetrievePages except it takes a Context and allows setting request options on the pages.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
func (*BedrockAgentRuntime) RetrieveRequest ¶
func (c *BedrockAgentRuntime) RetrieveRequest(input *RetrieveInput) (req *request.Request, output *RetrieveOutput)
RetrieveRequest generates a "aws/request.Request" representing the client's request for the Retrieve operation. The "output" return value will be populated with the request's response once the request completes successfully.
Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.
See Retrieve for more information on using the Retrieve API call, and error handling.
This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.
// Example sending a request using the RetrieveRequest method. req, resp := client.RetrieveRequest(params) err := req.Send() if err == nil { // resp is now filled fmt.Println(resp) }
See also, https://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-runtime-2023-07-26/Retrieve
func (*BedrockAgentRuntime) RetrieveWithContext ¶
func (c *BedrockAgentRuntime) RetrieveWithContext(ctx aws.Context, input *RetrieveInput, opts ...request.Option) (*RetrieveOutput, error)
RetrieveWithContext is the same as Retrieve with the addition of the ability to pass a context and additional request options.
See Retrieve for details on how to use this API operation.
The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.
type ByteContentDoc ¶ added in v1.51.27
type ByteContentDoc struct { // The MIME type of the document contained in the wrapper object. // // ContentType is a required field ContentType *string `locationName:"contentType" type:"string" required:"true"` // The byte value of the file to upload, encoded as a Base-64 string. // // Data is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ByteContentDoc's // String and GoString methods. // // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" min:"1" type:"blob" required:"true" sensitive:"true"` // The file name of the document contained in the wrapper object. // // Identifier is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ByteContentDoc's // String and GoString methods. // // Identifier is a required field Identifier *string `locationName:"identifier" min:"1" type:"string" required:"true" sensitive:"true"` // contains filtered or unexported fields }
This property contains the document to chat with, along with its attributes.
func (ByteContentDoc) GoString ¶ added in v1.51.27
func (s ByteContentDoc) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ByteContentDoc) SetContentType ¶ added in v1.51.27
func (s *ByteContentDoc) SetContentType(v string) *ByteContentDoc
SetContentType sets the ContentType field's value.
func (*ByteContentDoc) SetData ¶ added in v1.51.27
func (s *ByteContentDoc) SetData(v []byte) *ByteContentDoc
SetData sets the Data field's value.
func (*ByteContentDoc) SetIdentifier ¶ added in v1.51.27
func (s *ByteContentDoc) SetIdentifier(v string) *ByteContentDoc
SetIdentifier sets the Identifier field's value.
func (ByteContentDoc) String ¶ added in v1.51.27
func (s ByteContentDoc) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ByteContentDoc) Validate ¶ added in v1.51.27
func (s *ByteContentDoc) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ByteContentFile ¶ added in v1.54.18
type ByteContentFile struct { // The byte value of the file to attach, encoded as Base-64 string. The maximum // size of all files that is attached is 10MB. You can attach a maximum of 5 // files. // // Data is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ByteContentFile's // String and GoString methods. // // Data is automatically base64 encoded/decoded by the SDK. // // Data is a required field Data []byte `locationName:"data" min:"1" type:"blob" required:"true" sensitive:"true"` // The MIME type of data contained in the file used for chat. // // MediaType is a required field MediaType *string `locationName:"mediaType" type:"string" required:"true"` // contains filtered or unexported fields }
The property contains the file to chat with, along with its attributes.
func (ByteContentFile) GoString ¶ added in v1.54.18
func (s ByteContentFile) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ByteContentFile) SetData ¶ added in v1.54.18
func (s *ByteContentFile) SetData(v []byte) *ByteContentFile
SetData sets the Data field's value.
func (*ByteContentFile) SetMediaType ¶ added in v1.54.18
func (s *ByteContentFile) SetMediaType(v string) *ByteContentFile
SetMediaType sets the MediaType field's value.
func (ByteContentFile) String ¶ added in v1.54.18
func (s ByteContentFile) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ByteContentFile) Validate ¶ added in v1.54.18
func (s *ByteContentFile) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Citation ¶
type Citation struct { // Contains the generated response and metadata GeneratedResponsePart *GeneratedResponsePart `locationName:"generatedResponsePart" type:"structure"` // Contains metadata about the sources cited for the generated response. RetrievedReferences []*RetrievedReference `locationName:"retrievedReferences" type:"list"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the citations field
RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the citations field
func (Citation) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Citation) SetGeneratedResponsePart ¶
func (s *Citation) SetGeneratedResponsePart(v *GeneratedResponsePart) *Citation
SetGeneratedResponsePart sets the GeneratedResponsePart field's value.
func (*Citation) SetRetrievedReferences ¶
func (s *Citation) SetRetrievedReferences(v []*RetrievedReference) *Citation
SetRetrievedReferences sets the RetrievedReferences field's value.
type CodeInterpreterInvocationInput_ ¶ added in v1.54.18
type CodeInterpreterInvocationInput_ struct { // The code for the code interpreter to use. Code *string `locationName:"code" type:"string"` // Files that are uploaded for code interpreter to use. Files []*string `locationName:"files" type:"list"` // contains filtered or unexported fields }
Contains information about the code interpreter being invoked.
func (CodeInterpreterInvocationInput_) GoString ¶ added in v1.54.18
func (s CodeInterpreterInvocationInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CodeInterpreterInvocationInput_) SetCode ¶ added in v1.54.18
func (s *CodeInterpreterInvocationInput_) SetCode(v string) *CodeInterpreterInvocationInput_
SetCode sets the Code field's value.
func (*CodeInterpreterInvocationInput_) SetFiles ¶ added in v1.54.18
func (s *CodeInterpreterInvocationInput_) SetFiles(v []*string) *CodeInterpreterInvocationInput_
SetFiles sets the Files field's value.
func (CodeInterpreterInvocationInput_) String ¶ added in v1.54.18
func (s CodeInterpreterInvocationInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type CodeInterpreterInvocationOutput_ ¶ added in v1.54.18
type CodeInterpreterInvocationOutput_ struct { // Contains the error returned from code execution. ExecutionError *string `locationName:"executionError" type:"string"` // Contains the successful output returned from code execution ExecutionOutput *string `locationName:"executionOutput" type:"string"` // Indicates if the execution of the code timed out. ExecutionTimeout *bool `locationName:"executionTimeout" type:"boolean"` // Contains output files, if generated by code execution. Files []*string `locationName:"files" type:"list"` // contains filtered or unexported fields }
Contains the JSON-formatted string returned by the API invoked by the code interpreter.
func (CodeInterpreterInvocationOutput_) GoString ¶ added in v1.54.18
func (s CodeInterpreterInvocationOutput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*CodeInterpreterInvocationOutput_) SetExecutionError ¶ added in v1.54.18
func (s *CodeInterpreterInvocationOutput_) SetExecutionError(v string) *CodeInterpreterInvocationOutput_
SetExecutionError sets the ExecutionError field's value.
func (*CodeInterpreterInvocationOutput_) SetExecutionOutput ¶ added in v1.54.18
func (s *CodeInterpreterInvocationOutput_) SetExecutionOutput(v string) *CodeInterpreterInvocationOutput_
SetExecutionOutput sets the ExecutionOutput field's value.
func (*CodeInterpreterInvocationOutput_) SetExecutionTimeout ¶ added in v1.54.18
func (s *CodeInterpreterInvocationOutput_) SetExecutionTimeout(v bool) *CodeInterpreterInvocationOutput_
SetExecutionTimeout sets the ExecutionTimeout field's value.
func (*CodeInterpreterInvocationOutput_) SetFiles ¶ added in v1.54.18
func (s *CodeInterpreterInvocationOutput_) SetFiles(v []*string) *CodeInterpreterInvocationOutput_
SetFiles sets the Files field's value.
func (CodeInterpreterInvocationOutput_) String ¶ added in v1.54.18
func (s CodeInterpreterInvocationOutput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ConflictException ¶
type ConflictException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
There was a conflict performing an operation. Resolve the conflict and retry your request.
func (*ConflictException) Code ¶
func (s *ConflictException) Code() string
Code returns the exception type name.
func (*ConflictException) Error ¶
func (s *ConflictException) Error() string
func (ConflictException) GoString ¶
func (s ConflictException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConflictException) MarshalEvent ¶
func (s *ConflictException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ConflictException) Message ¶
func (s *ConflictException) Message() string
Message returns the exception's message.
func (*ConflictException) OrigErr ¶
func (s *ConflictException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ConflictException) RequestID ¶
func (s *ConflictException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ConflictException) StatusCode ¶
func (s *ConflictException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ConflictException) String ¶
func (s ConflictException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ConflictException) UnmarshalEvent ¶
func (s *ConflictException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ConflictException value. This method is only used internally within the SDK's EventStream handling.
type ContentBody ¶ added in v1.51.26
type ContentBody struct { // The body of the API response. Body *string `locationName:"body" type:"string"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_RequestSyntax)
func (ContentBody) GoString ¶ added in v1.51.26
func (s ContentBody) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ContentBody) SetBody ¶ added in v1.51.26
func (s *ContentBody) SetBody(v string) *ContentBody
SetBody sets the Body field's value.
func (ContentBody) String ¶ added in v1.51.26
func (s ContentBody) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DeleteAgentMemoryInput ¶ added in v1.54.18
type DeleteAgentMemoryInput struct { // The unique identifier of an alias of an agent. // // AgentAliasId is a required field AgentAliasId *string `location:"uri" locationName:"agentAliasId" type:"string" required:"true"` // The unique identifier of the agent to which the alias belongs. // // AgentId is a required field AgentId *string `location:"uri" locationName:"agentId" type:"string" required:"true"` // The unique identifier of the memory. MemoryId *string `location:"querystring" locationName:"memoryId" min:"2" type:"string"` // contains filtered or unexported fields }
func (DeleteAgentMemoryInput) GoString ¶ added in v1.54.18
func (s DeleteAgentMemoryInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteAgentMemoryInput) SetAgentAliasId ¶ added in v1.54.18
func (s *DeleteAgentMemoryInput) SetAgentAliasId(v string) *DeleteAgentMemoryInput
SetAgentAliasId sets the AgentAliasId field's value.
func (*DeleteAgentMemoryInput) SetAgentId ¶ added in v1.54.18
func (s *DeleteAgentMemoryInput) SetAgentId(v string) *DeleteAgentMemoryInput
SetAgentId sets the AgentId field's value.
func (*DeleteAgentMemoryInput) SetMemoryId ¶ added in v1.54.18
func (s *DeleteAgentMemoryInput) SetMemoryId(v string) *DeleteAgentMemoryInput
SetMemoryId sets the MemoryId field's value.
func (DeleteAgentMemoryInput) String ¶ added in v1.54.18
func (s DeleteAgentMemoryInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DeleteAgentMemoryInput) Validate ¶ added in v1.54.18
func (s *DeleteAgentMemoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type DeleteAgentMemoryOutput ¶ added in v1.54.18
type DeleteAgentMemoryOutput struct {
// contains filtered or unexported fields
}
func (DeleteAgentMemoryOutput) GoString ¶ added in v1.54.18
func (s DeleteAgentMemoryOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (DeleteAgentMemoryOutput) String ¶ added in v1.54.18
func (s DeleteAgentMemoryOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type DependencyFailedException ¶
type DependencyFailedException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // The name of the dependency that caused the issue, such as Amazon Bedrock, // Lambda, or STS. ResourceName *string `locationName:"resourceName" type:"string"` // contains filtered or unexported fields }
There was an issue with a dependency. Check the resource configurations and retry the request.
func (*DependencyFailedException) Code ¶
func (s *DependencyFailedException) Code() string
Code returns the exception type name.
func (*DependencyFailedException) Error ¶
func (s *DependencyFailedException) Error() string
func (DependencyFailedException) GoString ¶
func (s DependencyFailedException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DependencyFailedException) MarshalEvent ¶
func (s *DependencyFailedException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*DependencyFailedException) Message ¶
func (s *DependencyFailedException) Message() string
Message returns the exception's message.
func (*DependencyFailedException) OrigErr ¶
func (s *DependencyFailedException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*DependencyFailedException) RequestID ¶
func (s *DependencyFailedException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*DependencyFailedException) StatusCode ¶
func (s *DependencyFailedException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (DependencyFailedException) String ¶
func (s DependencyFailedException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*DependencyFailedException) UnmarshalEvent ¶
func (s *DependencyFailedException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the DependencyFailedException value. This method is only used internally within the SDK's EventStream handling.
type ExternalSource ¶ added in v1.51.27
type ExternalSource struct { // The identifier, contentType, and data of the external source wrapper object. ByteContent *ByteContentDoc `locationName:"byteContent" type:"structure"` // The S3 location of the external source wrapper object. S3Location *S3ObjectDoc `locationName:"s3Location" type:"structure"` // The source type of the external source wrapper object. // // SourceType is a required field SourceType *string `locationName:"sourceType" type:"string" required:"true" enum:"ExternalSourceType"` // contains filtered or unexported fields }
The unique external source of the content contained in the wrapper object.
func (ExternalSource) GoString ¶ added in v1.51.27
func (s ExternalSource) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ExternalSource) SetByteContent ¶ added in v1.51.27
func (s *ExternalSource) SetByteContent(v *ByteContentDoc) *ExternalSource
SetByteContent sets the ByteContent field's value.
func (*ExternalSource) SetS3Location ¶ added in v1.51.27
func (s *ExternalSource) SetS3Location(v *S3ObjectDoc) *ExternalSource
SetS3Location sets the S3Location field's value.
func (*ExternalSource) SetSourceType ¶ added in v1.51.27
func (s *ExternalSource) SetSourceType(v string) *ExternalSource
SetSourceType sets the SourceType field's value.
func (ExternalSource) String ¶ added in v1.51.27
func (s ExternalSource) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ExternalSource) Validate ¶ added in v1.51.27
func (s *ExternalSource) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExternalSourcesGenerationConfiguration ¶ added in v1.51.27
type ExternalSourcesGenerationConfiguration struct { // The configuration details for the guardrail. GuardrailConfiguration *GuardrailConfiguration `locationName:"guardrailConfiguration" type:"structure"` // Configuration settings for inference when using RetrieveAndGenerate to generate // responses while using an external source. InferenceConfig *InferenceConfig `locationName:"inferenceConfig" type:"structure"` // Contain the textPromptTemplate string for the external source wrapper object. PromptTemplate *PromptTemplate `locationName:"promptTemplate" type:"structure"` // contains filtered or unexported fields }
Contains the generation configuration of the external source wrapper object.
func (ExternalSourcesGenerationConfiguration) GoString ¶ added in v1.51.27
func (s ExternalSourcesGenerationConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ExternalSourcesGenerationConfiguration) SetGuardrailConfiguration ¶ added in v1.52.6
func (s *ExternalSourcesGenerationConfiguration) SetGuardrailConfiguration(v *GuardrailConfiguration) *ExternalSourcesGenerationConfiguration
SetGuardrailConfiguration sets the GuardrailConfiguration field's value.
func (*ExternalSourcesGenerationConfiguration) SetInferenceConfig ¶ added in v1.52.6
func (s *ExternalSourcesGenerationConfiguration) SetInferenceConfig(v *InferenceConfig) *ExternalSourcesGenerationConfiguration
SetInferenceConfig sets the InferenceConfig field's value.
func (*ExternalSourcesGenerationConfiguration) SetPromptTemplate ¶ added in v1.51.27
func (s *ExternalSourcesGenerationConfiguration) SetPromptTemplate(v *PromptTemplate) *ExternalSourcesGenerationConfiguration
SetPromptTemplate sets the PromptTemplate field's value.
func (ExternalSourcesGenerationConfiguration) String ¶ added in v1.51.27
func (s ExternalSourcesGenerationConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ExternalSourcesGenerationConfiguration) Validate ¶ added in v1.51.27
func (s *ExternalSourcesGenerationConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ExternalSourcesRetrieveAndGenerateConfiguration ¶ added in v1.51.27
type ExternalSourcesRetrieveAndGenerateConfiguration struct { // The prompt used with the external source wrapper object with the retrieveAndGenerate // function. GenerationConfiguration *ExternalSourcesGenerationConfiguration `locationName:"generationConfiguration" type:"structure"` // The modelArn used with the external source wrapper object in the retrieveAndGenerate // function. // // ModelArn is a required field ModelArn *string `locationName:"modelArn" min:"20" type:"string" required:"true"` // The document used with the external source wrapper object in the retrieveAndGenerate // function. // // Sources is a required field Sources []*ExternalSource `locationName:"sources" min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
The configurations of the external source wrapper object in the retrieveAndGenerate function.
func (ExternalSourcesRetrieveAndGenerateConfiguration) GoString ¶ added in v1.51.27
func (s ExternalSourcesRetrieveAndGenerateConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ExternalSourcesRetrieveAndGenerateConfiguration) SetGenerationConfiguration ¶ added in v1.51.27
func (s *ExternalSourcesRetrieveAndGenerateConfiguration) SetGenerationConfiguration(v *ExternalSourcesGenerationConfiguration) *ExternalSourcesRetrieveAndGenerateConfiguration
SetGenerationConfiguration sets the GenerationConfiguration field's value.
func (*ExternalSourcesRetrieveAndGenerateConfiguration) SetModelArn ¶ added in v1.51.27
func (s *ExternalSourcesRetrieveAndGenerateConfiguration) SetModelArn(v string) *ExternalSourcesRetrieveAndGenerateConfiguration
SetModelArn sets the ModelArn field's value.
func (*ExternalSourcesRetrieveAndGenerateConfiguration) SetSources ¶ added in v1.51.27
func (s *ExternalSourcesRetrieveAndGenerateConfiguration) SetSources(v []*ExternalSource) *ExternalSourcesRetrieveAndGenerateConfiguration
SetSources sets the Sources field's value.
func (ExternalSourcesRetrieveAndGenerateConfiguration) String ¶ added in v1.51.27
func (s ExternalSourcesRetrieveAndGenerateConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ExternalSourcesRetrieveAndGenerateConfiguration) Validate ¶ added in v1.51.27
func (s *ExternalSourcesRetrieveAndGenerateConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FailureTrace ¶
type FailureTrace struct { // The reason the interaction failed. // // FailureReason is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by FailureTrace's // String and GoString methods. FailureReason *string `locationName:"failureReason" type:"string" sensitive:"true"` // The unique identifier of the trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // contains filtered or unexported fields }
Contains information about the failure of the interaction.
func (FailureTrace) GoString ¶
func (s FailureTrace) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FailureTrace) SetFailureReason ¶
func (s *FailureTrace) SetFailureReason(v string) *FailureTrace
SetFailureReason sets the FailureReason field's value.
func (*FailureTrace) SetTraceId ¶
func (s *FailureTrace) SetTraceId(v string) *FailureTrace
SetTraceId sets the TraceId field's value.
func (FailureTrace) String ¶
func (s FailureTrace) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FilePart ¶ added in v1.54.18
type FilePart struct { // Files containing intermediate response for the user. Files []*OutputFile `locationName:"files" type:"list" sensitive:"true"` // contains filtered or unexported fields }
Contains intermediate response for code interpreter if any files have been generated.
func (FilePart) GoString ¶ added in v1.54.18
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FilePart) MarshalEvent ¶ added in v1.54.18
func (s *FilePart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*FilePart) SetFiles ¶ added in v1.54.18
func (s *FilePart) SetFiles(v []*OutputFile) *FilePart
SetFiles sets the Files field's value.
func (FilePart) String ¶ added in v1.54.18
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FilePart) UnmarshalEvent ¶ added in v1.54.18
func (s *FilePart) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the FilePart value. This method is only used internally within the SDK's EventStream handling.
type FileSource ¶ added in v1.54.18
type FileSource struct { // The data and the text of the attached files. ByteContent *ByteContentFile `locationName:"byteContent" type:"structure"` // The s3 location of the files to attach. S3Location *S3ObjectFile `locationName:"s3Location" type:"structure"` // The source type of the files to attach. // // SourceType is a required field SourceType *string `locationName:"sourceType" type:"string" required:"true" enum:"FileSourceType"` // contains filtered or unexported fields }
The source file of the content contained in the wrapper object.
func (FileSource) GoString ¶ added in v1.54.18
func (s FileSource) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FileSource) SetByteContent ¶ added in v1.54.18
func (s *FileSource) SetByteContent(v *ByteContentFile) *FileSource
SetByteContent sets the ByteContent field's value.
func (*FileSource) SetS3Location ¶ added in v1.54.18
func (s *FileSource) SetS3Location(v *S3ObjectFile) *FileSource
SetS3Location sets the S3Location field's value.
func (*FileSource) SetSourceType ¶ added in v1.54.18
func (s *FileSource) SetSourceType(v string) *FileSource
SetSourceType sets the SourceType field's value.
func (FileSource) String ¶ added in v1.54.18
func (s FileSource) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FileSource) Validate ¶ added in v1.54.18
func (s *FileSource) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FinalResponse ¶
type FinalResponse struct { // The text in the response to the user. // // Text is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by FinalResponse's // String and GoString methods. Text *string `locationName:"text" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Contains details about the response to the user.
func (FinalResponse) GoString ¶
func (s FinalResponse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FinalResponse) SetText ¶
func (s *FinalResponse) SetText(v string) *FinalResponse
SetText sets the Text field's value.
func (FinalResponse) String ¶
func (s FinalResponse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FlowCompletionEvent ¶ added in v1.54.18
type FlowCompletionEvent struct { // The reason that the flow completed. // // CompletionReason is a required field CompletionReason *string `locationName:"completionReason" type:"string" required:"true" enum:"FlowCompletionReason"` // contains filtered or unexported fields }
Contains information about why a flow completed.
This data type is used in the following API operations:
- InvokeFlow response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax)
func (FlowCompletionEvent) GoString ¶ added in v1.54.18
func (s FlowCompletionEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FlowCompletionEvent) MarshalEvent ¶ added in v1.54.18
func (s *FlowCompletionEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*FlowCompletionEvent) SetCompletionReason ¶ added in v1.54.18
func (s *FlowCompletionEvent) SetCompletionReason(v string) *FlowCompletionEvent
SetCompletionReason sets the CompletionReason field's value.
func (FlowCompletionEvent) String ¶ added in v1.54.18
func (s FlowCompletionEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FlowCompletionEvent) UnmarshalEvent ¶ added in v1.54.18
func (s *FlowCompletionEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the FlowCompletionEvent value. This method is only used internally within the SDK's EventStream handling.
type FlowInputContent ¶ added in v1.54.18
type FlowInputContent struct {
// contains filtered or unexported fields
}
Contains information about an input into the flow.
This data type is used in the following API operations:
- InvokeFlow request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax)
func (FlowInputContent) GoString ¶ added in v1.54.18
func (s FlowInputContent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (FlowInputContent) String ¶ added in v1.54.18
func (s FlowInputContent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FlowInput_ ¶ added in v1.54.18
type FlowInput_ struct { // Contains information about an input into the flow. // // Content is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by FlowInput_'s // String and GoString methods. // // Content is a required field Content *FlowInputContent `locationName:"content" type:"structure" required:"true" sensitive:"true"` // A name for the input of the flow input node. // // NodeName is a required field NodeName *string `locationName:"nodeName" type:"string" required:"true"` // A name for the output of the flow input node. // // NodeOutputName is a required field NodeOutputName *string `locationName:"nodeOutputName" type:"string" required:"true"` // contains filtered or unexported fields }
Contains information about an input into the flow and what to do with it.
This data type is used in the following API operations:
- InvokeFlow request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax)
func (FlowInput_) GoString ¶ added in v1.54.18
func (s FlowInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FlowInput_) SetContent ¶ added in v1.54.18
func (s *FlowInput_) SetContent(v *FlowInputContent) *FlowInput_
SetContent sets the Content field's value.
func (*FlowInput_) SetNodeName ¶ added in v1.54.18
func (s *FlowInput_) SetNodeName(v string) *FlowInput_
SetNodeName sets the NodeName field's value.
func (*FlowInput_) SetNodeOutputName ¶ added in v1.54.18
func (s *FlowInput_) SetNodeOutputName(v string) *FlowInput_
SetNodeOutputName sets the NodeOutputName field's value.
func (FlowInput_) String ¶ added in v1.54.18
func (s FlowInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FlowInput_) Validate ¶ added in v1.54.18
func (s *FlowInput_) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type FlowOutputContent ¶ added in v1.54.18
type FlowOutputContent struct {
// contains filtered or unexported fields
}
Contains information about the output node.
This data type is used in the following API operations:
- InvokeFlow request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_RequestSyntax)
func (FlowOutputContent) GoString ¶ added in v1.54.18
func (s FlowOutputContent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (FlowOutputContent) String ¶ added in v1.54.18
func (s FlowOutputContent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FlowOutputEvent ¶ added in v1.54.18
type FlowOutputEvent struct { // The output of the node. // // Content is a required field Content *FlowOutputContent `locationName:"content" type:"structure" required:"true"` // The name of the node to which input was provided. // // NodeName is a required field NodeName *string `locationName:"nodeName" type:"string" required:"true"` // The type of node to which input was provided. // // NodeType is a required field NodeType *string `locationName:"nodeType" type:"string" required:"true" enum:"NodeType"` // contains filtered or unexported fields }
Contains information about an output from flow invoction.
This data type is used in the following API operations:
- InvokeFlow response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeFlow.html#API_agent_InvokeFlow_ResponseSyntax)
func (FlowOutputEvent) GoString ¶ added in v1.54.18
func (s FlowOutputEvent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FlowOutputEvent) MarshalEvent ¶ added in v1.54.18
func (s *FlowOutputEvent) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*FlowOutputEvent) SetContent ¶ added in v1.54.18
func (s *FlowOutputEvent) SetContent(v *FlowOutputContent) *FlowOutputEvent
SetContent sets the Content field's value.
func (*FlowOutputEvent) SetNodeName ¶ added in v1.54.18
func (s *FlowOutputEvent) SetNodeName(v string) *FlowOutputEvent
SetNodeName sets the NodeName field's value.
func (*FlowOutputEvent) SetNodeType ¶ added in v1.54.18
func (s *FlowOutputEvent) SetNodeType(v string) *FlowOutputEvent
SetNodeType sets the NodeType field's value.
func (FlowOutputEvent) String ¶ added in v1.54.18
func (s FlowOutputEvent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FlowOutputEvent) UnmarshalEvent ¶ added in v1.54.18
func (s *FlowOutputEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the FlowOutputEvent value. This method is only used internally within the SDK's EventStream handling.
type FlowResponseStreamEvent ¶ added in v1.54.18
type FlowResponseStreamEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
FlowResponseStreamEvent groups together all EventStream events writes for FlowResponseStream.
These events are:
- FlowCompletionEvent
- FlowOutputEvent
type FlowResponseStreamReader ¶ added in v1.54.18
type FlowResponseStreamReader interface { // Returns a channel of events as they are read from the event stream. Events() <-chan FlowResponseStreamEvent // Close will stop the reader reading events from the stream. Close() error // Returns any error that has occurred while reading from the event stream. Err() error }
FlowResponseStreamReader provides the interface for reading to the stream. The default implementation for this interface will be FlowResponseStream.
The reader's Close method must allow multiple concurrent calls.
These events are:
- FlowCompletionEvent
- FlowOutputEvent
- FlowResponseStreamUnknownEvent
type FlowResponseStreamUnknownEvent ¶ added in v1.54.18
type FlowResponseStreamUnknownEvent struct { Type string Message eventstream.Message }
FlowResponseStreamUnknownEvent provides a failsafe event for the FlowResponseStream group of events when an unknown event is received.
func (*FlowResponseStreamUnknownEvent) MarshalEvent ¶ added in v1.54.18
func (e *FlowResponseStreamUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) ( msg eventstream.Message, err error, )
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*FlowResponseStreamUnknownEvent) UnmarshalEvent ¶ added in v1.54.18
func (e *FlowResponseStreamUnknownEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the FlowResponseStream value. This method is only used internally within the SDK's EventStream handling.
type FunctionInvocationInput_ ¶ added in v1.51.26
type FunctionInvocationInput_ struct { // The action group that the function belongs to. // // ActionGroup is a required field ActionGroup *string `locationName:"actionGroup" type:"string" required:"true"` // The name of the function. Function *string `locationName:"function" type:"string"` // A list of parameters of the function. Parameters []*FunctionParameter `locationName:"parameters" type:"list"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (FunctionInvocationInput_) GoString ¶ added in v1.51.26
func (s FunctionInvocationInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FunctionInvocationInput_) SetActionGroup ¶ added in v1.51.26
func (s *FunctionInvocationInput_) SetActionGroup(v string) *FunctionInvocationInput_
SetActionGroup sets the ActionGroup field's value.
func (*FunctionInvocationInput_) SetFunction ¶ added in v1.51.26
func (s *FunctionInvocationInput_) SetFunction(v string) *FunctionInvocationInput_
SetFunction sets the Function field's value.
func (*FunctionInvocationInput_) SetParameters ¶ added in v1.51.26
func (s *FunctionInvocationInput_) SetParameters(v []*FunctionParameter) *FunctionInvocationInput_
SetParameters sets the Parameters field's value.
func (FunctionInvocationInput_) String ¶ added in v1.51.26
func (s FunctionInvocationInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FunctionParameter ¶ added in v1.51.26
type FunctionParameter struct { // The name of the parameter. Name *string `locationName:"name" type:"string"` // The data type of the parameter. Type *string `locationName:"type" type:"string"` // The value of the parameter. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (FunctionParameter) GoString ¶ added in v1.51.26
func (s FunctionParameter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FunctionParameter) SetName ¶ added in v1.51.26
func (s *FunctionParameter) SetName(v string) *FunctionParameter
SetName sets the Name field's value.
func (*FunctionParameter) SetType ¶ added in v1.51.26
func (s *FunctionParameter) SetType(v string) *FunctionParameter
SetType sets the Type field's value.
func (*FunctionParameter) SetValue ¶ added in v1.51.26
func (s *FunctionParameter) SetValue(v string) *FunctionParameter
SetValue sets the Value field's value.
func (FunctionParameter) String ¶ added in v1.51.26
func (s FunctionParameter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type FunctionResult ¶ added in v1.51.26
type FunctionResult struct { // The action group that the function belongs to. // // ActionGroup is a required field ActionGroup *string `locationName:"actionGroup" type:"string" required:"true"` // The name of the function that was called. Function *string `locationName:"function" type:"string"` // The response from the function call using the parameters. The key of the // object is the content type (currently, only TEXT is supported). The response // may be returned directly or from the Lambda function. ResponseBody map[string]*ContentBody `locationName:"responseBody" type:"map"` // Controls the final response state returned to end user when API/Function // execution failed. When this state is FAILURE, the request would fail with // dependency failure exception. When this state is REPROMPT, the API/function // response will be sent to model for re-prompt ResponseState *string `locationName:"responseState" type:"string" enum:"ResponseState"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_RequestSyntax)
func (FunctionResult) GoString ¶ added in v1.51.26
func (s FunctionResult) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FunctionResult) SetActionGroup ¶ added in v1.51.26
func (s *FunctionResult) SetActionGroup(v string) *FunctionResult
SetActionGroup sets the ActionGroup field's value.
func (*FunctionResult) SetFunction ¶ added in v1.51.26
func (s *FunctionResult) SetFunction(v string) *FunctionResult
SetFunction sets the Function field's value.
func (*FunctionResult) SetResponseBody ¶ added in v1.51.26
func (s *FunctionResult) SetResponseBody(v map[string]*ContentBody) *FunctionResult
SetResponseBody sets the ResponseBody field's value.
func (*FunctionResult) SetResponseState ¶ added in v1.51.26
func (s *FunctionResult) SetResponseState(v string) *FunctionResult
SetResponseState sets the ResponseState field's value.
func (FunctionResult) String ¶ added in v1.51.26
func (s FunctionResult) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*FunctionResult) Validate ¶ added in v1.51.26
func (s *FunctionResult) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GeneratedResponsePart ¶
type GeneratedResponsePart struct { // Contains metadata about a textual part of the generated response that is // accompanied by a citation. // // TextResponsePart is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GeneratedResponsePart's // String and GoString methods. TextResponsePart *TextResponsePart `locationName:"textResponsePart" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the generatedResponsePart field
RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the generatedResponsePart field
func (GeneratedResponsePart) GoString ¶
func (s GeneratedResponsePart) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GeneratedResponsePart) SetTextResponsePart ¶
func (s *GeneratedResponsePart) SetTextResponsePart(v *TextResponsePart) *GeneratedResponsePart
SetTextResponsePart sets the TextResponsePart field's value.
func (GeneratedResponsePart) String ¶
func (s GeneratedResponsePart) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GenerationConfiguration ¶ added in v1.51.8
type GenerationConfiguration struct { // The configuration details for the guardrail. GuardrailConfiguration *GuardrailConfiguration `locationName:"guardrailConfiguration" type:"structure"` // Configuration settings for inference when using RetrieveAndGenerate to generate // responses while using a knowledge base as a source. InferenceConfig *InferenceConfig `locationName:"inferenceConfig" type:"structure"` // Contains the template for the prompt that's sent to the model for response // generation. PromptTemplate *PromptTemplate `locationName:"promptTemplate" type:"structure"` // contains filtered or unexported fields }
Contains configurations for response generation based on the knowledge base query results.
This data type is used in the following API operations:
- RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax)
func (GenerationConfiguration) GoString ¶ added in v1.51.8
func (s GenerationConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GenerationConfiguration) SetGuardrailConfiguration ¶ added in v1.52.6
func (s *GenerationConfiguration) SetGuardrailConfiguration(v *GuardrailConfiguration) *GenerationConfiguration
SetGuardrailConfiguration sets the GuardrailConfiguration field's value.
func (*GenerationConfiguration) SetInferenceConfig ¶ added in v1.52.6
func (s *GenerationConfiguration) SetInferenceConfig(v *InferenceConfig) *GenerationConfiguration
SetInferenceConfig sets the InferenceConfig field's value.
func (*GenerationConfiguration) SetPromptTemplate ¶ added in v1.51.8
func (s *GenerationConfiguration) SetPromptTemplate(v *PromptTemplate) *GenerationConfiguration
SetPromptTemplate sets the PromptTemplate field's value.
func (GenerationConfiguration) String ¶ added in v1.51.8
func (s GenerationConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GenerationConfiguration) Validate ¶ added in v1.51.8
func (s *GenerationConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetAgentMemoryInput ¶ added in v1.54.18
type GetAgentMemoryInput struct { // The unique identifier of an alias of an agent. // // AgentAliasId is a required field AgentAliasId *string `location:"uri" locationName:"agentAliasId" type:"string" required:"true"` // The unique identifier of the agent to which the alias belongs. // // AgentId is a required field AgentId *string `location:"uri" locationName:"agentId" type:"string" required:"true"` // The maximum number of items to return in the response. If the total number // of results is greater than this value, use the token returned in the response // in the nextToken field when making another request to return the next batch // of results. MaxItems *int64 `location:"querystring" locationName:"maxItems" min:"1" type:"integer"` // The unique identifier of the memory. // // MemoryId is a required field MemoryId *string `location:"querystring" locationName:"memoryId" min:"2" type:"string" required:"true"` // The type of memory. // // MemoryType is a required field MemoryType *string `location:"querystring" locationName:"memoryType" type:"string" required:"true" enum:"MemoryType"` // If the total number of results is greater than the maxItems value provided // in the request, enter the token returned in the nextToken field in the response // in this field to return the next batch of results. NextToken *string `location:"querystring" locationName:"nextToken" min:"1" type:"string"` // contains filtered or unexported fields }
func (GetAgentMemoryInput) GoString ¶ added in v1.54.18
func (s GetAgentMemoryInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetAgentMemoryInput) SetAgentAliasId ¶ added in v1.54.18
func (s *GetAgentMemoryInput) SetAgentAliasId(v string) *GetAgentMemoryInput
SetAgentAliasId sets the AgentAliasId field's value.
func (*GetAgentMemoryInput) SetAgentId ¶ added in v1.54.18
func (s *GetAgentMemoryInput) SetAgentId(v string) *GetAgentMemoryInput
SetAgentId sets the AgentId field's value.
func (*GetAgentMemoryInput) SetMaxItems ¶ added in v1.54.18
func (s *GetAgentMemoryInput) SetMaxItems(v int64) *GetAgentMemoryInput
SetMaxItems sets the MaxItems field's value.
func (*GetAgentMemoryInput) SetMemoryId ¶ added in v1.54.18
func (s *GetAgentMemoryInput) SetMemoryId(v string) *GetAgentMemoryInput
SetMemoryId sets the MemoryId field's value.
func (*GetAgentMemoryInput) SetMemoryType ¶ added in v1.54.18
func (s *GetAgentMemoryInput) SetMemoryType(v string) *GetAgentMemoryInput
SetMemoryType sets the MemoryType field's value.
func (*GetAgentMemoryInput) SetNextToken ¶ added in v1.54.18
func (s *GetAgentMemoryInput) SetNextToken(v string) *GetAgentMemoryInput
SetNextToken sets the NextToken field's value.
func (GetAgentMemoryInput) String ¶ added in v1.54.18
func (s GetAgentMemoryInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetAgentMemoryInput) Validate ¶ added in v1.54.18
func (s *GetAgentMemoryInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GetAgentMemoryOutput ¶ added in v1.54.18
type GetAgentMemoryOutput struct { // Contains details of the sessions stored in the memory MemoryContents []*Memory `locationName:"memoryContents" type:"list"` // If the total number of results is greater than the maxItems value provided // in the request, use this token when making another request in the nextToken // field to return the next batch of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // contains filtered or unexported fields }
func (GetAgentMemoryOutput) GoString ¶ added in v1.54.18
func (s GetAgentMemoryOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GetAgentMemoryOutput) SetMemoryContents ¶ added in v1.54.18
func (s *GetAgentMemoryOutput) SetMemoryContents(v []*Memory) *GetAgentMemoryOutput
SetMemoryContents sets the MemoryContents field's value.
func (*GetAgentMemoryOutput) SetNextToken ¶ added in v1.54.18
func (s *GetAgentMemoryOutput) SetNextToken(v string) *GetAgentMemoryOutput
SetNextToken sets the NextToken field's value.
func (GetAgentMemoryOutput) String ¶ added in v1.54.18
func (s GetAgentMemoryOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailAssessment ¶ added in v1.53.6
type GuardrailAssessment struct { // Content policy details of the Guardrail. // // ContentPolicy is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailAssessment's // String and GoString methods. ContentPolicy *GuardrailContentPolicyAssessment `locationName:"contentPolicy" type:"structure" sensitive:"true"` // Sensitive Information policy details of Guardrail. // // SensitiveInformationPolicy is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailAssessment's // String and GoString methods. SensitiveInformationPolicy *GuardrailSensitiveInformationPolicyAssessment `locationName:"sensitiveInformationPolicy" type:"structure" sensitive:"true"` // Topic policy details of the Guardrail. // // TopicPolicy is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailAssessment's // String and GoString methods. TopicPolicy *GuardrailTopicPolicyAssessment `locationName:"topicPolicy" type:"structure" sensitive:"true"` // Word policy details of the Guardrail. // // WordPolicy is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailAssessment's // String and GoString methods. WordPolicy *GuardrailWordPolicyAssessment `locationName:"wordPolicy" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
Assessment details of the content analyzed by Guardrails.
func (GuardrailAssessment) GoString ¶ added in v1.53.6
func (s GuardrailAssessment) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailAssessment) SetContentPolicy ¶ added in v1.53.6
func (s *GuardrailAssessment) SetContentPolicy(v *GuardrailContentPolicyAssessment) *GuardrailAssessment
SetContentPolicy sets the ContentPolicy field's value.
func (*GuardrailAssessment) SetSensitiveInformationPolicy ¶ added in v1.53.6
func (s *GuardrailAssessment) SetSensitiveInformationPolicy(v *GuardrailSensitiveInformationPolicyAssessment) *GuardrailAssessment
SetSensitiveInformationPolicy sets the SensitiveInformationPolicy field's value.
func (*GuardrailAssessment) SetTopicPolicy ¶ added in v1.53.6
func (s *GuardrailAssessment) SetTopicPolicy(v *GuardrailTopicPolicyAssessment) *GuardrailAssessment
SetTopicPolicy sets the TopicPolicy field's value.
func (*GuardrailAssessment) SetWordPolicy ¶ added in v1.53.6
func (s *GuardrailAssessment) SetWordPolicy(v *GuardrailWordPolicyAssessment) *GuardrailAssessment
SetWordPolicy sets the WordPolicy field's value.
func (GuardrailAssessment) String ¶ added in v1.53.6
func (s GuardrailAssessment) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailConfiguration ¶ added in v1.52.6
type GuardrailConfiguration struct { // The unique identifier for the guardrail. // // GuardrailId is a required field GuardrailId *string `locationName:"guardrailId" type:"string" required:"true"` // The version of the guardrail. // // GuardrailVersion is a required field GuardrailVersion *string `locationName:"guardrailVersion" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
The configuration details for the guardrail.
func (GuardrailConfiguration) GoString ¶ added in v1.52.6
func (s GuardrailConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailConfiguration) SetGuardrailId ¶ added in v1.52.6
func (s *GuardrailConfiguration) SetGuardrailId(v string) *GuardrailConfiguration
SetGuardrailId sets the GuardrailId field's value.
func (*GuardrailConfiguration) SetGuardrailVersion ¶ added in v1.52.6
func (s *GuardrailConfiguration) SetGuardrailVersion(v string) *GuardrailConfiguration
SetGuardrailVersion sets the GuardrailVersion field's value.
func (GuardrailConfiguration) String ¶ added in v1.52.6
func (s GuardrailConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailConfiguration) Validate ¶ added in v1.52.6
func (s *GuardrailConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type GuardrailContentFilter ¶ added in v1.53.6
type GuardrailContentFilter struct { // The action placed on the content by the Guardrail filter. Action *string `locationName:"action" type:"string" enum:"GuardrailContentPolicyAction"` // The confidence level regarding the content detected in the filter by the // Guardrail. Confidence *string `locationName:"confidence" type:"string" enum:"GuardrailContentFilterConfidence"` // The type of content detected in the filter by the Guardrail. Type *string `locationName:"type" type:"string" enum:"GuardrailContentFilterType"` // contains filtered or unexported fields }
Details of the content filter used in the Guardrail.
func (GuardrailContentFilter) GoString ¶ added in v1.53.6
func (s GuardrailContentFilter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailContentFilter) SetAction ¶ added in v1.53.6
func (s *GuardrailContentFilter) SetAction(v string) *GuardrailContentFilter
SetAction sets the Action field's value.
func (*GuardrailContentFilter) SetConfidence ¶ added in v1.53.6
func (s *GuardrailContentFilter) SetConfidence(v string) *GuardrailContentFilter
SetConfidence sets the Confidence field's value.
func (*GuardrailContentFilter) SetType ¶ added in v1.53.6
func (s *GuardrailContentFilter) SetType(v string) *GuardrailContentFilter
SetType sets the Type field's value.
func (GuardrailContentFilter) String ¶ added in v1.53.6
func (s GuardrailContentFilter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailContentPolicyAssessment ¶ added in v1.53.6
type GuardrailContentPolicyAssessment struct { // The filter details of the policy assessment used in the Guardrails filter. // // Filters is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailContentPolicyAssessment's // String and GoString methods. Filters []*GuardrailContentFilter `locationName:"filters" type:"list" sensitive:"true"` // contains filtered or unexported fields }
The details of the policy assessment in the Guardrails filter.
func (GuardrailContentPolicyAssessment) GoString ¶ added in v1.53.6
func (s GuardrailContentPolicyAssessment) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailContentPolicyAssessment) SetFilters ¶ added in v1.53.6
func (s *GuardrailContentPolicyAssessment) SetFilters(v []*GuardrailContentFilter) *GuardrailContentPolicyAssessment
SetFilters sets the Filters field's value.
func (GuardrailContentPolicyAssessment) String ¶ added in v1.53.6
func (s GuardrailContentPolicyAssessment) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailCustomWord ¶ added in v1.53.6
type GuardrailCustomWord struct { // The action details for the custom word filter in the Guardrail. Action *string `locationName:"action" type:"string" enum:"GuardrailWordPolicyAction"` // The match details for the custom word filter in the Guardrail. Match *string `locationName:"match" type:"string"` // contains filtered or unexported fields }
The custom word details for the filter in the Guardrail.
func (GuardrailCustomWord) GoString ¶ added in v1.53.6
func (s GuardrailCustomWord) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailCustomWord) SetAction ¶ added in v1.53.6
func (s *GuardrailCustomWord) SetAction(v string) *GuardrailCustomWord
SetAction sets the Action field's value.
func (*GuardrailCustomWord) SetMatch ¶ added in v1.53.6
func (s *GuardrailCustomWord) SetMatch(v string) *GuardrailCustomWord
SetMatch sets the Match field's value.
func (GuardrailCustomWord) String ¶ added in v1.53.6
func (s GuardrailCustomWord) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailManagedWord ¶ added in v1.53.6
type GuardrailManagedWord struct { // The action details for the managed word filter in the Guardrail. Action *string `locationName:"action" type:"string" enum:"GuardrailWordPolicyAction"` // The match details for the managed word filter in the Guardrail. Match *string `locationName:"match" type:"string"` // The type details for the managed word filter in the Guardrail. Type *string `locationName:"type" type:"string" enum:"GuardrailManagedWordType"` // contains filtered or unexported fields }
The managed word details for the filter in the Guardrail.
func (GuardrailManagedWord) GoString ¶ added in v1.53.6
func (s GuardrailManagedWord) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailManagedWord) SetAction ¶ added in v1.53.6
func (s *GuardrailManagedWord) SetAction(v string) *GuardrailManagedWord
SetAction sets the Action field's value.
func (*GuardrailManagedWord) SetMatch ¶ added in v1.53.6
func (s *GuardrailManagedWord) SetMatch(v string) *GuardrailManagedWord
SetMatch sets the Match field's value.
func (*GuardrailManagedWord) SetType ¶ added in v1.53.6
func (s *GuardrailManagedWord) SetType(v string) *GuardrailManagedWord
SetType sets the Type field's value.
func (GuardrailManagedWord) String ¶ added in v1.53.6
func (s GuardrailManagedWord) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailPiiEntityFilter ¶ added in v1.53.6
type GuardrailPiiEntityFilter struct { // The action of the Guardrail filter to identify and remove PII. Action *string `locationName:"action" type:"string" enum:"GuardrailSensitiveInformationPolicyAction"` // The match to settings in the Guardrail filter to identify and remove PII. Match *string `locationName:"match" type:"string"` // The type of PII the Guardrail filter has identified and removed. Type *string `locationName:"type" type:"string" enum:"GuardrailPiiEntityType"` // contains filtered or unexported fields }
The Guardrail filter to identify and remove personally identifiable information (PII).
func (GuardrailPiiEntityFilter) GoString ¶ added in v1.53.6
func (s GuardrailPiiEntityFilter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailPiiEntityFilter) SetAction ¶ added in v1.53.6
func (s *GuardrailPiiEntityFilter) SetAction(v string) *GuardrailPiiEntityFilter
SetAction sets the Action field's value.
func (*GuardrailPiiEntityFilter) SetMatch ¶ added in v1.53.6
func (s *GuardrailPiiEntityFilter) SetMatch(v string) *GuardrailPiiEntityFilter
SetMatch sets the Match field's value.
func (*GuardrailPiiEntityFilter) SetType ¶ added in v1.53.6
func (s *GuardrailPiiEntityFilter) SetType(v string) *GuardrailPiiEntityFilter
SetType sets the Type field's value.
func (GuardrailPiiEntityFilter) String ¶ added in v1.53.6
func (s GuardrailPiiEntityFilter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailRegexFilter ¶ added in v1.53.6
type GuardrailRegexFilter struct { // The action details for the regex filter used in the Guardrail. Action *string `locationName:"action" type:"string" enum:"GuardrailSensitiveInformationPolicyAction"` // The match details for the regex filter used in the Guardrail. Match *string `locationName:"match" type:"string"` // The name details for the regex filter used in the Guardrail. Name *string `locationName:"name" type:"string"` // The regex details for the regex filter used in the Guardrail. Regex *string `locationName:"regex" type:"string"` // contains filtered or unexported fields }
The details for the regex filter used in the Guardrail.
func (GuardrailRegexFilter) GoString ¶ added in v1.53.6
func (s GuardrailRegexFilter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailRegexFilter) SetAction ¶ added in v1.53.6
func (s *GuardrailRegexFilter) SetAction(v string) *GuardrailRegexFilter
SetAction sets the Action field's value.
func (*GuardrailRegexFilter) SetMatch ¶ added in v1.53.6
func (s *GuardrailRegexFilter) SetMatch(v string) *GuardrailRegexFilter
SetMatch sets the Match field's value.
func (*GuardrailRegexFilter) SetName ¶ added in v1.53.6
func (s *GuardrailRegexFilter) SetName(v string) *GuardrailRegexFilter
SetName sets the Name field's value.
func (*GuardrailRegexFilter) SetRegex ¶ added in v1.53.6
func (s *GuardrailRegexFilter) SetRegex(v string) *GuardrailRegexFilter
SetRegex sets the Regex field's value.
func (GuardrailRegexFilter) String ¶ added in v1.53.6
func (s GuardrailRegexFilter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailSensitiveInformationPolicyAssessment ¶ added in v1.53.6
type GuardrailSensitiveInformationPolicyAssessment struct { // The details of the PII entities used in the sensitive policy assessment for // the Guardrail. // // PiiEntities is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailSensitiveInformationPolicyAssessment's // String and GoString methods. PiiEntities []*GuardrailPiiEntityFilter `locationName:"piiEntities" type:"list" sensitive:"true"` // The details of the regexes used in the sensitive policy assessment for the // Guardrail. // // Regexes is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailSensitiveInformationPolicyAssessment's // String and GoString methods. Regexes []*GuardrailRegexFilter `locationName:"regexes" type:"list" sensitive:"true"` // contains filtered or unexported fields }
The details of the sensitive policy assessment used in the Guardrail.
func (GuardrailSensitiveInformationPolicyAssessment) GoString ¶ added in v1.53.6
func (s GuardrailSensitiveInformationPolicyAssessment) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailSensitiveInformationPolicyAssessment) SetPiiEntities ¶ added in v1.53.6
func (s *GuardrailSensitiveInformationPolicyAssessment) SetPiiEntities(v []*GuardrailPiiEntityFilter) *GuardrailSensitiveInformationPolicyAssessment
SetPiiEntities sets the PiiEntities field's value.
func (*GuardrailSensitiveInformationPolicyAssessment) SetRegexes ¶ added in v1.53.6
func (s *GuardrailSensitiveInformationPolicyAssessment) SetRegexes(v []*GuardrailRegexFilter) *GuardrailSensitiveInformationPolicyAssessment
SetRegexes sets the Regexes field's value.
func (GuardrailSensitiveInformationPolicyAssessment) String ¶ added in v1.53.6
func (s GuardrailSensitiveInformationPolicyAssessment) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailTopic ¶ added in v1.53.6
type GuardrailTopic struct { // The action details on a specific topic in the Guardrail. Action *string `locationName:"action" type:"string" enum:"GuardrailTopicPolicyAction"` // The name details on a specific topic in the Guardrail. Name *string `locationName:"name" type:"string"` // The type details on a specific topic in the Guardrail. Type *string `locationName:"type" type:"string" enum:"GuardrailTopicType"` // contains filtered or unexported fields }
The details for a specific topic defined in the Guardrail.
func (GuardrailTopic) GoString ¶ added in v1.53.6
func (s GuardrailTopic) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailTopic) SetAction ¶ added in v1.53.6
func (s *GuardrailTopic) SetAction(v string) *GuardrailTopic
SetAction sets the Action field's value.
func (*GuardrailTopic) SetName ¶ added in v1.53.6
func (s *GuardrailTopic) SetName(v string) *GuardrailTopic
SetName sets the Name field's value.
func (*GuardrailTopic) SetType ¶ added in v1.53.6
func (s *GuardrailTopic) SetType(v string) *GuardrailTopic
SetType sets the Type field's value.
func (GuardrailTopic) String ¶ added in v1.53.6
func (s GuardrailTopic) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailTopicPolicyAssessment ¶ added in v1.53.6
type GuardrailTopicPolicyAssessment struct { // The topic details of the policy assessment used in the Guardrail. // // Topics is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailTopicPolicyAssessment's // String and GoString methods. Topics []*GuardrailTopic `locationName:"topics" type:"list" sensitive:"true"` // contains filtered or unexported fields }
The details of the policy assessment used in the Guardrail.
func (GuardrailTopicPolicyAssessment) GoString ¶ added in v1.53.6
func (s GuardrailTopicPolicyAssessment) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailTopicPolicyAssessment) SetTopics ¶ added in v1.53.6
func (s *GuardrailTopicPolicyAssessment) SetTopics(v []*GuardrailTopic) *GuardrailTopicPolicyAssessment
SetTopics sets the Topics field's value.
func (GuardrailTopicPolicyAssessment) String ¶ added in v1.53.6
func (s GuardrailTopicPolicyAssessment) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailTrace ¶ added in v1.53.6
type GuardrailTrace struct { // The trace action details used with the Guardrail. Action *string `locationName:"action" type:"string" enum:"GuardrailAction"` // The details of the input assessments used in the Guardrail Trace. InputAssessments []*GuardrailAssessment `locationName:"inputAssessments" type:"list" sensitive:"true"` // The details of the output assessments used in the Guardrail Trace. OutputAssessments []*GuardrailAssessment `locationName:"outputAssessments" type:"list" sensitive:"true"` // The details of the trace Id used in the Guardrail Trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // contains filtered or unexported fields }
The trace details used in the Guardrail.
func (GuardrailTrace) GoString ¶ added in v1.53.6
func (s GuardrailTrace) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailTrace) SetAction ¶ added in v1.53.6
func (s *GuardrailTrace) SetAction(v string) *GuardrailTrace
SetAction sets the Action field's value.
func (*GuardrailTrace) SetInputAssessments ¶ added in v1.53.6
func (s *GuardrailTrace) SetInputAssessments(v []*GuardrailAssessment) *GuardrailTrace
SetInputAssessments sets the InputAssessments field's value.
func (*GuardrailTrace) SetOutputAssessments ¶ added in v1.53.6
func (s *GuardrailTrace) SetOutputAssessments(v []*GuardrailAssessment) *GuardrailTrace
SetOutputAssessments sets the OutputAssessments field's value.
func (*GuardrailTrace) SetTraceId ¶ added in v1.53.6
func (s *GuardrailTrace) SetTraceId(v string) *GuardrailTrace
SetTraceId sets the TraceId field's value.
func (GuardrailTrace) String ¶ added in v1.53.6
func (s GuardrailTrace) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type GuardrailWordPolicyAssessment ¶ added in v1.53.6
type GuardrailWordPolicyAssessment struct { // The custom word details for words defined in the Guardrail filter. // // CustomWords is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailWordPolicyAssessment's // String and GoString methods. CustomWords []*GuardrailCustomWord `locationName:"customWords" type:"list" sensitive:"true"` // The managed word lists for words defined in the Guardrail filter. // // ManagedWordLists is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by GuardrailWordPolicyAssessment's // String and GoString methods. ManagedWordLists []*GuardrailManagedWord `locationName:"managedWordLists" type:"list" sensitive:"true"` // contains filtered or unexported fields }
The assessment details for words defined in the Guardrail filter.
func (GuardrailWordPolicyAssessment) GoString ¶ added in v1.53.6
func (s GuardrailWordPolicyAssessment) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*GuardrailWordPolicyAssessment) SetCustomWords ¶ added in v1.53.6
func (s *GuardrailWordPolicyAssessment) SetCustomWords(v []*GuardrailCustomWord) *GuardrailWordPolicyAssessment
SetCustomWords sets the CustomWords field's value.
func (*GuardrailWordPolicyAssessment) SetManagedWordLists ¶ added in v1.53.6
func (s *GuardrailWordPolicyAssessment) SetManagedWordLists(v []*GuardrailManagedWord) *GuardrailWordPolicyAssessment
SetManagedWordLists sets the ManagedWordLists field's value.
func (GuardrailWordPolicyAssessment) String ¶ added in v1.53.6
func (s GuardrailWordPolicyAssessment) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InferenceConfig ¶ added in v1.52.6
type InferenceConfig struct { // Configuration settings specific to text generation while generating responses // using RetrieveAndGenerate. TextInferenceConfig *TextInferenceConfig `locationName:"textInferenceConfig" type:"structure"` // contains filtered or unexported fields }
The configuration for inference settings when generating responses using RetrieveAndGenerate.
func (InferenceConfig) GoString ¶ added in v1.52.6
func (s InferenceConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InferenceConfig) SetTextInferenceConfig ¶ added in v1.52.6
func (s *InferenceConfig) SetTextInferenceConfig(v *TextInferenceConfig) *InferenceConfig
SetTextInferenceConfig sets the TextInferenceConfig field's value.
func (InferenceConfig) String ¶ added in v1.52.6
func (s InferenceConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InferenceConfiguration ¶
type InferenceConfiguration struct { // The maximum number of tokens allowed in the generated response. MaximumLength *int64 `locationName:"maximumLength" type:"integer"` // A list of stop sequences. A stop sequence is a sequence of characters that // causes the model to stop generating the response. StopSequences []*string `locationName:"stopSequences" type:"list"` // The likelihood of the model selecting higher-probability options while generating // a response. A lower value makes the model more likely to choose higher-probability // options, while a higher value makes the model more likely to choose lower-probability // options. Temperature *float64 `locationName:"temperature" type:"float"` // While generating a response, the model determines the probability of the // following token at each point of generation. The value that you set for topK // is the number of most-likely candidates from which the model chooses the // next token in the sequence. For example, if you set topK to 50, the model // selects the next token from among the top 50 most likely choices. TopK *int64 `locationName:"topK" type:"integer"` // While generating a response, the model determines the probability of the // following token at each point of generation. The value that you set for Top // P determines the number of most-likely candidates from which the model chooses // the next token in the sequence. For example, if you set topP to 80, the model // only selects the next token from the top 80% of the probability distribution // of next tokens. TopP *float64 `locationName:"topP" type:"float"` // contains filtered or unexported fields }
Specifications about the inference parameters that were provided alongside the prompt. These are specified in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) object that was set when the agent was created or updated. For more information, see Inference parameters for foundation models (https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html).
func (InferenceConfiguration) GoString ¶
func (s InferenceConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InferenceConfiguration) SetMaximumLength ¶
func (s *InferenceConfiguration) SetMaximumLength(v int64) *InferenceConfiguration
SetMaximumLength sets the MaximumLength field's value.
func (*InferenceConfiguration) SetStopSequences ¶
func (s *InferenceConfiguration) SetStopSequences(v []*string) *InferenceConfiguration
SetStopSequences sets the StopSequences field's value.
func (*InferenceConfiguration) SetTemperature ¶
func (s *InferenceConfiguration) SetTemperature(v float64) *InferenceConfiguration
SetTemperature sets the Temperature field's value.
func (*InferenceConfiguration) SetTopK ¶
func (s *InferenceConfiguration) SetTopK(v int64) *InferenceConfiguration
SetTopK sets the TopK field's value.
func (*InferenceConfiguration) SetTopP ¶
func (s *InferenceConfiguration) SetTopP(v float64) *InferenceConfiguration
SetTopP sets the TopP field's value.
func (InferenceConfiguration) String ¶
func (s InferenceConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InputFile ¶ added in v1.54.18
type InputFile struct { // The name of the source file. // // Name is a required field Name *string `locationName:"name" type:"string" required:"true"` // Specifies where the files are located. // // Source is a required field Source *FileSource `locationName:"source" type:"structure" required:"true"` // Specifies how the source files will be used by the code interpreter. // // UseCase is a required field UseCase *string `locationName:"useCase" type:"string" required:"true" enum:"FileUseCase"` // contains filtered or unexported fields }
Contains details of the source files.
func (InputFile) GoString ¶ added in v1.54.18
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InputFile) SetSource ¶ added in v1.54.18
func (s *InputFile) SetSource(v *FileSource) *InputFile
SetSource sets the Source field's value.
func (*InputFile) SetUseCase ¶ added in v1.54.18
SetUseCase sets the UseCase field's value.
type InternalServerException ¶
type InternalServerException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
An internal server error occurred. Retry your request.
func (*InternalServerException) Code ¶
func (s *InternalServerException) Code() string
Code returns the exception type name.
func (*InternalServerException) Error ¶
func (s *InternalServerException) Error() string
func (InternalServerException) GoString ¶
func (s InternalServerException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InternalServerException) MarshalEvent ¶
func (s *InternalServerException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*InternalServerException) Message ¶
func (s *InternalServerException) Message() string
Message returns the exception's message.
func (*InternalServerException) OrigErr ¶
func (s *InternalServerException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*InternalServerException) RequestID ¶
func (s *InternalServerException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*InternalServerException) StatusCode ¶
func (s *InternalServerException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (InternalServerException) String ¶
func (s InternalServerException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InternalServerException) UnmarshalEvent ¶
func (s *InternalServerException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the InternalServerException value. This method is only used internally within the SDK's EventStream handling.
type InvocationInputMember ¶ added in v1.51.26
type InvocationInputMember struct { // Contains information about the API operation that the agent predicts should // be called. ApiInvocationInput *ApiInvocationInput_ `locationName:"apiInvocationInput" type:"structure"` // Contains information about the function that the agent predicts should be // called. FunctionInvocationInput *FunctionInvocationInput_ `locationName:"functionInvocationInput" type:"structure"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (InvocationInputMember) GoString ¶ added in v1.51.26
func (s InvocationInputMember) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvocationInputMember) SetApiInvocationInput ¶ added in v1.51.26
func (s *InvocationInputMember) SetApiInvocationInput(v *ApiInvocationInput_) *InvocationInputMember
SetApiInvocationInput sets the ApiInvocationInput field's value.
func (*InvocationInputMember) SetFunctionInvocationInput ¶ added in v1.51.26
func (s *InvocationInputMember) SetFunctionInvocationInput(v *FunctionInvocationInput_) *InvocationInputMember
SetFunctionInvocationInput sets the FunctionInvocationInput field's value.
func (InvocationInputMember) String ¶ added in v1.51.26
func (s InvocationInputMember) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvocationInput_ ¶
type InvocationInput_ struct { // Contains information about the action group to be invoked. ActionGroupInvocationInput *ActionGroupInvocationInput_ `locationName:"actionGroupInvocationInput" type:"structure"` // Contains information about the code interpreter to be invoked. CodeInterpreterInvocationInput *CodeInterpreterInvocationInput_ `locationName:"codeInterpreterInvocationInput" type:"structure"` // Specifies whether the agent is invoking an action group or a knowledge base. InvocationType *string `locationName:"invocationType" type:"string" enum:"InvocationType"` // Contains details about the knowledge base to look up and the query to be // made. KnowledgeBaseLookupInput *KnowledgeBaseLookupInput_ `locationName:"knowledgeBaseLookupInput" type:"structure"` // The unique identifier of the trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // contains filtered or unexported fields }
Contains information pertaining to the action group or knowledge base that is being invoked.
func (InvocationInput_) GoString ¶
func (s InvocationInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvocationInput_) SetActionGroupInvocationInput ¶
func (s *InvocationInput_) SetActionGroupInvocationInput(v *ActionGroupInvocationInput_) *InvocationInput_
SetActionGroupInvocationInput sets the ActionGroupInvocationInput field's value.
func (*InvocationInput_) SetCodeInterpreterInvocationInput ¶ added in v1.54.18
func (s *InvocationInput_) SetCodeInterpreterInvocationInput(v *CodeInterpreterInvocationInput_) *InvocationInput_
SetCodeInterpreterInvocationInput sets the CodeInterpreterInvocationInput field's value.
func (*InvocationInput_) SetInvocationType ¶
func (s *InvocationInput_) SetInvocationType(v string) *InvocationInput_
SetInvocationType sets the InvocationType field's value.
func (*InvocationInput_) SetKnowledgeBaseLookupInput ¶
func (s *InvocationInput_) SetKnowledgeBaseLookupInput(v *KnowledgeBaseLookupInput_) *InvocationInput_
SetKnowledgeBaseLookupInput sets the KnowledgeBaseLookupInput field's value.
func (*InvocationInput_) SetTraceId ¶
func (s *InvocationInput_) SetTraceId(v string) *InvocationInput_
SetTraceId sets the TraceId field's value.
func (InvocationInput_) String ¶
func (s InvocationInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvocationResultMember ¶ added in v1.51.26
type InvocationResultMember struct { // The result from the API response from the action group invocation. ApiResult *ApiResult `locationName:"apiResult" type:"structure"` // The result from the function from the action group invocation. FunctionResult *FunctionResult `locationName:"functionResult" type:"structure"` // contains filtered or unexported fields }
A result from the invocation of an action. For more information, see Return control to the agent developer (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html) and Control session context (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html).
This data type is used in the following API operations:
- InvokeAgent request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_RequestSyntax)
func (InvocationResultMember) GoString ¶ added in v1.51.26
func (s InvocationResultMember) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvocationResultMember) SetApiResult ¶ added in v1.51.26
func (s *InvocationResultMember) SetApiResult(v *ApiResult) *InvocationResultMember
SetApiResult sets the ApiResult field's value.
func (*InvocationResultMember) SetFunctionResult ¶ added in v1.51.26
func (s *InvocationResultMember) SetFunctionResult(v *FunctionResult) *InvocationResultMember
SetFunctionResult sets the FunctionResult field's value.
func (InvocationResultMember) String ¶ added in v1.51.26
func (s InvocationResultMember) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvocationResultMember) Validate ¶ added in v1.51.26
func (s *InvocationResultMember) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeAgentEventStream ¶
type InvokeAgentEventStream struct { // Reader is the EventStream reader for the ResponseStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Reader. // // Must not be nil. Reader ResponseStreamReader // contains filtered or unexported fields }
InvokeAgentEventStream provides the event stream handling for the InvokeAgent.
For testing and mocking the event stream this type should be initialized via the NewInvokeAgentEventStream constructor function. Using the functional options to pass in nested mock behavior.
func NewInvokeAgentEventStream ¶
func NewInvokeAgentEventStream(opts ...func(*InvokeAgentEventStream)) *InvokeAgentEventStream
NewInvokeAgentEventStream initializes an InvokeAgentEventStream. This function should only be used for testing and mocking the InvokeAgentEventStream stream within your application.
The Reader member must be set before reading events from the stream.
es := NewInvokeAgentEventStream(func(o *InvokeAgentEventStream){ es.Reader = myMockStreamReader })
func (*InvokeAgentEventStream) Close ¶
func (es *InvokeAgentEventStream) Close() (err error)
Close closes the stream. This will also cause the stream to be closed. Close must be called when done using the stream API. Not calling Close may result in resource leaks.
You can use the closing of the Reader's Events channel to terminate your application's read from the API's stream.
func (*InvokeAgentEventStream) Err ¶
func (es *InvokeAgentEventStream) Err() error
Err returns any error that occurred while reading or writing EventStream Events from the service API's response. Returns nil if there were no errors.
func (*InvokeAgentEventStream) Events ¶
func (es *InvokeAgentEventStream) Events() <-chan ResponseStreamEvent
Events returns a channel to read events from.
These events are:
- PayloadPart
- FilePart
- ReturnControlPayload
- TracePart
- ResponseStreamUnknownEvent
type InvokeAgentInput ¶
type InvokeAgentInput struct { // The alias of the agent to use. // // AgentAliasId is a required field AgentAliasId *string `location:"uri" locationName:"agentAliasId" type:"string" required:"true"` // The unique identifier of the agent to use. // // AgentId is a required field AgentId *string `location:"uri" locationName:"agentId" type:"string" required:"true"` // Specifies whether to turn on the trace or not to track the agent's reasoning // process. For more information, see Trace enablement (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events). EnableTrace *bool `locationName:"enableTrace" type:"boolean"` // Specifies whether to end the session with the agent or not. EndSession *bool `locationName:"endSession" type:"boolean"` // The prompt text to send the agent. // // If you include returnControlInvocationResults in the sessionState field, // the inputText field will be ignored. // // InputText is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by InvokeAgentInput's // String and GoString methods. InputText *string `locationName:"inputText" type:"string" sensitive:"true"` // The unique identifier of the agent memory. MemoryId *string `locationName:"memoryId" min:"2" type:"string"` // The unique identifier of the session. Use the same value across requests // to continue the same conversation. // // SessionId is a required field SessionId *string `location:"uri" locationName:"sessionId" min:"2" type:"string" required:"true"` // Contains parameters that specify various attributes of the session. For more // information, see Control session context (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). // // If you include returnControlInvocationResults in the sessionState field, // the inputText field will be ignored. SessionState *SessionState `locationName:"sessionState" type:"structure"` // contains filtered or unexported fields }
func (InvokeAgentInput) GoString ¶
func (s InvokeAgentInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvokeAgentInput) SetAgentAliasId ¶
func (s *InvokeAgentInput) SetAgentAliasId(v string) *InvokeAgentInput
SetAgentAliasId sets the AgentAliasId field's value.
func (*InvokeAgentInput) SetAgentId ¶
func (s *InvokeAgentInput) SetAgentId(v string) *InvokeAgentInput
SetAgentId sets the AgentId field's value.
func (*InvokeAgentInput) SetEnableTrace ¶
func (s *InvokeAgentInput) SetEnableTrace(v bool) *InvokeAgentInput
SetEnableTrace sets the EnableTrace field's value.
func (*InvokeAgentInput) SetEndSession ¶
func (s *InvokeAgentInput) SetEndSession(v bool) *InvokeAgentInput
SetEndSession sets the EndSession field's value.
func (*InvokeAgentInput) SetInputText ¶
func (s *InvokeAgentInput) SetInputText(v string) *InvokeAgentInput
SetInputText sets the InputText field's value.
func (*InvokeAgentInput) SetMemoryId ¶ added in v1.54.18
func (s *InvokeAgentInput) SetMemoryId(v string) *InvokeAgentInput
SetMemoryId sets the MemoryId field's value.
func (*InvokeAgentInput) SetSessionId ¶
func (s *InvokeAgentInput) SetSessionId(v string) *InvokeAgentInput
SetSessionId sets the SessionId field's value.
func (*InvokeAgentInput) SetSessionState ¶
func (s *InvokeAgentInput) SetSessionState(v *SessionState) *InvokeAgentInput
SetSessionState sets the SessionState field's value.
func (InvokeAgentInput) String ¶
func (s InvokeAgentInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvokeAgentInput) Validate ¶
func (s *InvokeAgentInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeAgentOutput ¶
type InvokeAgentOutput struct { // The MIME type of the input data in the request. The default value is application/json. // // ContentType is a required field ContentType *string `location:"header" locationName:"x-amzn-bedrock-agent-content-type" type:"string" required:"true"` // The unique identifier of the agent memory. MemoryId *string `location:"header" locationName:"x-amz-bedrock-agent-memory-id" min:"2" type:"string"` // The unique identifier of the session with the agent. // // SessionId is a required field SessionId *string `location:"header" locationName:"x-amz-bedrock-agent-session-id" min:"2" type:"string" required:"true"` // contains filtered or unexported fields }
func (*InvokeAgentOutput) GetStream ¶
func (s *InvokeAgentOutput) GetStream() *InvokeAgentEventStream
GetStream returns the type to interact with the event stream.
func (InvokeAgentOutput) GoString ¶
func (s InvokeAgentOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvokeAgentOutput) SetContentType ¶
func (s *InvokeAgentOutput) SetContentType(v string) *InvokeAgentOutput
SetContentType sets the ContentType field's value.
func (*InvokeAgentOutput) SetMemoryId ¶ added in v1.54.18
func (s *InvokeAgentOutput) SetMemoryId(v string) *InvokeAgentOutput
SetMemoryId sets the MemoryId field's value.
func (*InvokeAgentOutput) SetSessionId ¶
func (s *InvokeAgentOutput) SetSessionId(v string) *InvokeAgentOutput
SetSessionId sets the SessionId field's value.
func (InvokeAgentOutput) String ¶
func (s InvokeAgentOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type InvokeFlowEventStream ¶ added in v1.54.18
type InvokeFlowEventStream struct { // Reader is the EventStream reader for the FlowResponseStream // events. This value is automatically set by the SDK when the API call is made // Use this member when unit testing your code with the SDK to mock out the // EventStream Reader. // // Must not be nil. Reader FlowResponseStreamReader // contains filtered or unexported fields }
InvokeFlowEventStream provides the event stream handling for the InvokeFlow.
For testing and mocking the event stream this type should be initialized via the NewInvokeFlowEventStream constructor function. Using the functional options to pass in nested mock behavior.
func NewInvokeFlowEventStream ¶ added in v1.54.18
func NewInvokeFlowEventStream(opts ...func(*InvokeFlowEventStream)) *InvokeFlowEventStream
NewInvokeFlowEventStream initializes an InvokeFlowEventStream. This function should only be used for testing and mocking the InvokeFlowEventStream stream within your application.
The Reader member must be set before reading events from the stream.
es := NewInvokeFlowEventStream(func(o *InvokeFlowEventStream){ es.Reader = myMockStreamReader })
func (*InvokeFlowEventStream) Close ¶ added in v1.54.18
func (es *InvokeFlowEventStream) Close() (err error)
Close closes the stream. This will also cause the stream to be closed. Close must be called when done using the stream API. Not calling Close may result in resource leaks.
You can use the closing of the Reader's Events channel to terminate your application's read from the API's stream.
func (*InvokeFlowEventStream) Err ¶ added in v1.54.18
func (es *InvokeFlowEventStream) Err() error
Err returns any error that occurred while reading or writing EventStream Events from the service API's response. Returns nil if there were no errors.
func (*InvokeFlowEventStream) Events ¶ added in v1.54.18
func (es *InvokeFlowEventStream) Events() <-chan FlowResponseStreamEvent
Events returns a channel to read events from.
These events are:
- FlowCompletionEvent
- FlowOutputEvent
- FlowResponseStreamUnknownEvent
type InvokeFlowInput ¶ added in v1.54.18
type InvokeFlowInput struct { // The unique identifier of the flow alias. // // FlowAliasIdentifier is a required field FlowAliasIdentifier *string `location:"uri" locationName:"flowAliasIdentifier" type:"string" required:"true"` // The unique identifier of the flow. // // FlowIdentifier is a required field FlowIdentifier *string `location:"uri" locationName:"flowIdentifier" type:"string" required:"true"` // A list of objects, each containing information about an input into the flow. // // Inputs is a required field Inputs []*FlowInput_ `locationName:"inputs" min:"1" type:"list" required:"true"` // contains filtered or unexported fields }
func (InvokeFlowInput) GoString ¶ added in v1.54.18
func (s InvokeFlowInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvokeFlowInput) SetFlowAliasIdentifier ¶ added in v1.54.18
func (s *InvokeFlowInput) SetFlowAliasIdentifier(v string) *InvokeFlowInput
SetFlowAliasIdentifier sets the FlowAliasIdentifier field's value.
func (*InvokeFlowInput) SetFlowIdentifier ¶ added in v1.54.18
func (s *InvokeFlowInput) SetFlowIdentifier(v string) *InvokeFlowInput
SetFlowIdentifier sets the FlowIdentifier field's value.
func (*InvokeFlowInput) SetInputs ¶ added in v1.54.18
func (s *InvokeFlowInput) SetInputs(v []*FlowInput_) *InvokeFlowInput
SetInputs sets the Inputs field's value.
func (InvokeFlowInput) String ¶ added in v1.54.18
func (s InvokeFlowInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*InvokeFlowInput) Validate ¶ added in v1.54.18
func (s *InvokeFlowInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type InvokeFlowOutput ¶ added in v1.54.18
type InvokeFlowOutput struct {
// contains filtered or unexported fields
}
func (*InvokeFlowOutput) GetStream ¶ added in v1.54.18
func (s *InvokeFlowOutput) GetStream() *InvokeFlowEventStream
GetStream returns the type to interact with the event stream.
func (InvokeFlowOutput) GoString ¶ added in v1.54.18
func (s InvokeFlowOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (InvokeFlowOutput) String ¶ added in v1.54.18
func (s InvokeFlowOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KnowledgeBaseConfiguration ¶ added in v1.54.18
type KnowledgeBaseConfiguration struct { // The unique identifier for a knowledge base attached to the agent. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` // The configurations to apply to the knowledge base during query. For more // information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). // // RetrievalConfiguration is a required field RetrievalConfiguration *KnowledgeBaseRetrievalConfiguration `locationName:"retrievalConfiguration" type:"structure" required:"true"` // contains filtered or unexported fields }
Configurations to apply to a knowledge base attached to the agent during query. For more information, see Knowledge base retrieval configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html#session-state-kb).
func (KnowledgeBaseConfiguration) GoString ¶ added in v1.54.18
func (s KnowledgeBaseConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseConfiguration) SetKnowledgeBaseId ¶ added in v1.54.18
func (s *KnowledgeBaseConfiguration) SetKnowledgeBaseId(v string) *KnowledgeBaseConfiguration
SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
func (*KnowledgeBaseConfiguration) SetRetrievalConfiguration ¶ added in v1.54.18
func (s *KnowledgeBaseConfiguration) SetRetrievalConfiguration(v *KnowledgeBaseRetrievalConfiguration) *KnowledgeBaseConfiguration
SetRetrievalConfiguration sets the RetrievalConfiguration field's value.
func (KnowledgeBaseConfiguration) String ¶ added in v1.54.18
func (s KnowledgeBaseConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseConfiguration) Validate ¶ added in v1.54.18
func (s *KnowledgeBaseConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KnowledgeBaseLookupInput_ ¶
type KnowledgeBaseLookupInput_ struct { // The unique identifier of the knowledge base to look up. // // KnowledgeBaseId is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by KnowledgeBaseLookupInput_'s // String and GoString methods. KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" sensitive:"true"` // The query made to the knowledge base. // // Text is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by KnowledgeBaseLookupInput_'s // String and GoString methods. Text *string `locationName:"text" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Contains details about the knowledge base to look up and the query to be made.
func (KnowledgeBaseLookupInput_) GoString ¶
func (s KnowledgeBaseLookupInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseLookupInput_) SetKnowledgeBaseId ¶
func (s *KnowledgeBaseLookupInput_) SetKnowledgeBaseId(v string) *KnowledgeBaseLookupInput_
SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
func (*KnowledgeBaseLookupInput_) SetText ¶
func (s *KnowledgeBaseLookupInput_) SetText(v string) *KnowledgeBaseLookupInput_
SetText sets the Text field's value.
func (KnowledgeBaseLookupInput_) String ¶
func (s KnowledgeBaseLookupInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KnowledgeBaseLookupOutput_ ¶
type KnowledgeBaseLookupOutput_ struct { // Contains metadata about the sources cited for the generated response. RetrievedReferences []*RetrievedReference `locationName:"retrievedReferences" type:"list"` // contains filtered or unexported fields }
Contains details about the results from looking up the knowledge base.
func (KnowledgeBaseLookupOutput_) GoString ¶
func (s KnowledgeBaseLookupOutput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseLookupOutput_) SetRetrievedReferences ¶
func (s *KnowledgeBaseLookupOutput_) SetRetrievedReferences(v []*RetrievedReference) *KnowledgeBaseLookupOutput_
SetRetrievedReferences sets the RetrievedReferences field's value.
func (KnowledgeBaseLookupOutput_) String ¶
func (s KnowledgeBaseLookupOutput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KnowledgeBaseQuery ¶
type KnowledgeBaseQuery struct { // The text of the query made to the knowledge base. // // Text is a required field Text *string `locationName:"text" type:"string" required:"true"` // contains filtered or unexported fields }
Contains the query made to the knowledge base.
This data type is used in the following API operations:
- Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) – in the retrievalQuery field
func (KnowledgeBaseQuery) GoString ¶
func (s KnowledgeBaseQuery) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseQuery) SetText ¶
func (s *KnowledgeBaseQuery) SetText(v string) *KnowledgeBaseQuery
SetText sets the Text field's value.
func (KnowledgeBaseQuery) String ¶
func (s KnowledgeBaseQuery) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseQuery) Validate ¶
func (s *KnowledgeBaseQuery) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KnowledgeBaseRetrievalConfiguration ¶
type KnowledgeBaseRetrievalConfiguration struct { // Contains details about how the results from the vector search should be returned. // For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). // // VectorSearchConfiguration is a required field VectorSearchConfiguration *KnowledgeBaseVectorSearchConfiguration `locationName:"vectorSearchConfiguration" type:"structure" required:"true"` // contains filtered or unexported fields }
Contains configurations for knowledge base query. For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html).
This data type is used in the following API operations:
Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) – in the retrievalConfiguration field
RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the retrievalConfiguration field
func (KnowledgeBaseRetrievalConfiguration) GoString ¶
func (s KnowledgeBaseRetrievalConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseRetrievalConfiguration) SetVectorSearchConfiguration ¶
func (s *KnowledgeBaseRetrievalConfiguration) SetVectorSearchConfiguration(v *KnowledgeBaseVectorSearchConfiguration) *KnowledgeBaseRetrievalConfiguration
SetVectorSearchConfiguration sets the VectorSearchConfiguration field's value.
func (KnowledgeBaseRetrievalConfiguration) String ¶
func (s KnowledgeBaseRetrievalConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseRetrievalConfiguration) Validate ¶
func (s *KnowledgeBaseRetrievalConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KnowledgeBaseRetrievalResult ¶
type KnowledgeBaseRetrievalResult struct { // Contains a chunk of text from a data source in the knowledge base. // // Content is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by KnowledgeBaseRetrievalResult's // String and GoString methods. // // Content is a required field Content *RetrievalResultContent `locationName:"content" type:"structure" required:"true" sensitive:"true"` // Contains information about the location of the data source. // // Location is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by KnowledgeBaseRetrievalResult's // String and GoString methods. Location *RetrievalResultLocation `locationName:"location" type:"structure" sensitive:"true"` // The level of relevance of the result to the query. Score *float64 `locationName:"score" type:"double"` // contains filtered or unexported fields }
Details about a result from querying the knowledge base.
This data type is used in the following API operations:
- Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) – in the retrievalResults field
func (KnowledgeBaseRetrievalResult) GoString ¶
func (s KnowledgeBaseRetrievalResult) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseRetrievalResult) SetContent ¶
func (s *KnowledgeBaseRetrievalResult) SetContent(v *RetrievalResultContent) *KnowledgeBaseRetrievalResult
SetContent sets the Content field's value.
func (*KnowledgeBaseRetrievalResult) SetLocation ¶
func (s *KnowledgeBaseRetrievalResult) SetLocation(v *RetrievalResultLocation) *KnowledgeBaseRetrievalResult
SetLocation sets the Location field's value.
func (*KnowledgeBaseRetrievalResult) SetScore ¶
func (s *KnowledgeBaseRetrievalResult) SetScore(v float64) *KnowledgeBaseRetrievalResult
SetScore sets the Score field's value.
func (KnowledgeBaseRetrievalResult) String ¶
func (s KnowledgeBaseRetrievalResult) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type KnowledgeBaseRetrieveAndGenerateConfiguration ¶
type KnowledgeBaseRetrieveAndGenerateConfiguration struct { // Contains configurations for response generation based on the knowledge base // query results. GenerationConfiguration *GenerationConfiguration `locationName:"generationConfiguration" type:"structure"` // The unique identifier of the knowledge base that is queried and the foundation // model used for generation. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `locationName:"knowledgeBaseId" type:"string" required:"true"` // The ARN of the foundation model used to generate a response. // // ModelArn is a required field ModelArn *string `locationName:"modelArn" min:"20" type:"string" required:"true"` // Settings for how the model processes the prompt prior to retrieval and generation. OrchestrationConfiguration *OrchestrationConfiguration `locationName:"orchestrationConfiguration" type:"structure"` // Contains configurations for how to retrieve and return the knowledge base // query. RetrievalConfiguration *KnowledgeBaseRetrievalConfiguration `locationName:"retrievalConfiguration" type:"structure"` // contains filtered or unexported fields }
Contains details about the resource being queried.
This data type is used in the following API operations:
Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) – in the knowledgeBaseConfiguration field
RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the knowledgeBaseConfiguration field
func (KnowledgeBaseRetrieveAndGenerateConfiguration) GoString ¶
func (s KnowledgeBaseRetrieveAndGenerateConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseRetrieveAndGenerateConfiguration) SetGenerationConfiguration ¶ added in v1.51.8
func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetGenerationConfiguration(v *GenerationConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration
SetGenerationConfiguration sets the GenerationConfiguration field's value.
func (*KnowledgeBaseRetrieveAndGenerateConfiguration) SetKnowledgeBaseId ¶
func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetKnowledgeBaseId(v string) *KnowledgeBaseRetrieveAndGenerateConfiguration
SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
func (*KnowledgeBaseRetrieveAndGenerateConfiguration) SetModelArn ¶
func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetModelArn(v string) *KnowledgeBaseRetrieveAndGenerateConfiguration
SetModelArn sets the ModelArn field's value.
func (*KnowledgeBaseRetrieveAndGenerateConfiguration) SetOrchestrationConfiguration ¶ added in v1.54.18
func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetOrchestrationConfiguration(v *OrchestrationConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration
SetOrchestrationConfiguration sets the OrchestrationConfiguration field's value.
func (*KnowledgeBaseRetrieveAndGenerateConfiguration) SetRetrievalConfiguration ¶ added in v1.50.28
func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) SetRetrievalConfiguration(v *KnowledgeBaseRetrievalConfiguration) *KnowledgeBaseRetrieveAndGenerateConfiguration
SetRetrievalConfiguration sets the RetrievalConfiguration field's value.
func (KnowledgeBaseRetrieveAndGenerateConfiguration) String ¶
func (s KnowledgeBaseRetrieveAndGenerateConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseRetrieveAndGenerateConfiguration) Validate ¶
func (s *KnowledgeBaseRetrieveAndGenerateConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type KnowledgeBaseVectorSearchConfiguration ¶
type KnowledgeBaseVectorSearchConfiguration struct { // Specifies the filters to use on the metadata in the knowledge base data sources // before returning results. For more information, see Query configurations // (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). // // Filter is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by KnowledgeBaseVectorSearchConfiguration's // String and GoString methods. Filter *RetrievalFilter `locationName:"filter" type:"structure" sensitive:"true"` // The number of source chunks to retrieve. NumberOfResults *int64 `locationName:"numberOfResults" min:"1" type:"integer"` // By default, Amazon Bedrock decides a search strategy for you. If you're using // an Amazon OpenSearch Serverless vector store that contains a filterable text // field, you can specify whether to query the knowledge base with a HYBRID // search using both vector embeddings and raw text, or SEMANTIC search using // only vector embeddings. For other vector store configurations, only SEMANTIC // search is available. For more information, see Test a knowledge base (https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-test.html). OverrideSearchType *string `locationName:"overrideSearchType" type:"string" enum:"SearchType"` // contains filtered or unexported fields }
Configurations for how to perform the search query and return results. For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html).
This data type is used in the following API operations:
Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) – in the vectorSearchConfiguration field
RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the vectorSearchConfiguration field
func (KnowledgeBaseVectorSearchConfiguration) GoString ¶
func (s KnowledgeBaseVectorSearchConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseVectorSearchConfiguration) SetFilter ¶ added in v1.51.9
func (s *KnowledgeBaseVectorSearchConfiguration) SetFilter(v *RetrievalFilter) *KnowledgeBaseVectorSearchConfiguration
SetFilter sets the Filter field's value.
func (*KnowledgeBaseVectorSearchConfiguration) SetNumberOfResults ¶
func (s *KnowledgeBaseVectorSearchConfiguration) SetNumberOfResults(v int64) *KnowledgeBaseVectorSearchConfiguration
SetNumberOfResults sets the NumberOfResults field's value.
func (*KnowledgeBaseVectorSearchConfiguration) SetOverrideSearchType ¶ added in v1.50.28
func (s *KnowledgeBaseVectorSearchConfiguration) SetOverrideSearchType(v string) *KnowledgeBaseVectorSearchConfiguration
SetOverrideSearchType sets the OverrideSearchType field's value.
func (KnowledgeBaseVectorSearchConfiguration) String ¶
func (s KnowledgeBaseVectorSearchConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*KnowledgeBaseVectorSearchConfiguration) Validate ¶
func (s *KnowledgeBaseVectorSearchConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Memory ¶ added in v1.54.18
type Memory struct { // Contains summary of a session. SessionSummary *MemorySessionSummary `locationName:"sessionSummary" type:"structure"` // contains filtered or unexported fields }
Contains sessions summaries.
func (Memory) GoString ¶ added in v1.54.18
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Memory) SetSessionSummary ¶ added in v1.54.18
func (s *Memory) SetSessionSummary(v *MemorySessionSummary) *Memory
SetSessionSummary sets the SessionSummary field's value.
type MemorySessionSummary ¶ added in v1.54.18
type MemorySessionSummary struct { // The unique identifier of the memory where the session summary is stored. MemoryId *string `locationName:"memoryId" min:"2" type:"string"` // The time when the memory duration for the session is set to end. SessionExpiryTime *time.Time `locationName:"sessionExpiryTime" type:"timestamp" timestampFormat:"iso8601"` // The identifier for this session. SessionId *string `locationName:"sessionId" min:"2" type:"string"` // The start time for this session. SessionStartTime *time.Time `locationName:"sessionStartTime" type:"timestamp" timestampFormat:"iso8601"` // The summarized text for this session. SummaryText *string `locationName:"summaryText" type:"string"` // contains filtered or unexported fields }
Contains details of a session summary.
func (MemorySessionSummary) GoString ¶ added in v1.54.18
func (s MemorySessionSummary) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*MemorySessionSummary) SetMemoryId ¶ added in v1.54.18
func (s *MemorySessionSummary) SetMemoryId(v string) *MemorySessionSummary
SetMemoryId sets the MemoryId field's value.
func (*MemorySessionSummary) SetSessionExpiryTime ¶ added in v1.54.18
func (s *MemorySessionSummary) SetSessionExpiryTime(v time.Time) *MemorySessionSummary
SetSessionExpiryTime sets the SessionExpiryTime field's value.
func (*MemorySessionSummary) SetSessionId ¶ added in v1.54.18
func (s *MemorySessionSummary) SetSessionId(v string) *MemorySessionSummary
SetSessionId sets the SessionId field's value.
func (*MemorySessionSummary) SetSessionStartTime ¶ added in v1.54.18
func (s *MemorySessionSummary) SetSessionStartTime(v time.Time) *MemorySessionSummary
SetSessionStartTime sets the SessionStartTime field's value.
func (*MemorySessionSummary) SetSummaryText ¶ added in v1.54.18
func (s *MemorySessionSummary) SetSummaryText(v string) *MemorySessionSummary
SetSummaryText sets the SummaryText field's value.
func (MemorySessionSummary) String ¶ added in v1.54.18
func (s MemorySessionSummary) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ModelInvocationInput_ ¶
type ModelInvocationInput_ struct { // Specifications about the inference parameters that were provided alongside // the prompt. These are specified in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) // object that was set when the agent was created or updated. For more information, // see Inference parameters for foundation models (https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html). InferenceConfiguration *InferenceConfiguration `locationName:"inferenceConfiguration" type:"structure"` // The ARN of the Lambda function to use when parsing the raw foundation model // output in parts of the agent sequence. OverrideLambda *string `locationName:"overrideLambda" type:"string"` // Specifies whether to override the default parser Lambda function when parsing // the raw foundation model output in the part of the agent sequence defined // by the promptType. ParserMode *string `locationName:"parserMode" type:"string" enum:"CreationMode"` // Specifies whether the default prompt template was OVERRIDDEN. If it was, // the basePromptTemplate that was set in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) // object when the agent was created or updated is used instead. PromptCreationMode *string `locationName:"promptCreationMode" type:"string" enum:"CreationMode"` // The text that prompted the agent at this step. // // Text is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by ModelInvocationInput_'s // String and GoString methods. Text *string `locationName:"text" type:"string" sensitive:"true"` // The unique identifier of the trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // The step in the agent sequence. Type *string `locationName:"type" type:"string" enum:"PromptType"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) object that was set when the agent was created or updated.
func (ModelInvocationInput_) GoString ¶
func (s ModelInvocationInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ModelInvocationInput_) SetInferenceConfiguration ¶
func (s *ModelInvocationInput_) SetInferenceConfiguration(v *InferenceConfiguration) *ModelInvocationInput_
SetInferenceConfiguration sets the InferenceConfiguration field's value.
func (*ModelInvocationInput_) SetOverrideLambda ¶
func (s *ModelInvocationInput_) SetOverrideLambda(v string) *ModelInvocationInput_
SetOverrideLambda sets the OverrideLambda field's value.
func (*ModelInvocationInput_) SetParserMode ¶
func (s *ModelInvocationInput_) SetParserMode(v string) *ModelInvocationInput_
SetParserMode sets the ParserMode field's value.
func (*ModelInvocationInput_) SetPromptCreationMode ¶
func (s *ModelInvocationInput_) SetPromptCreationMode(v string) *ModelInvocationInput_
SetPromptCreationMode sets the PromptCreationMode field's value.
func (*ModelInvocationInput_) SetText ¶
func (s *ModelInvocationInput_) SetText(v string) *ModelInvocationInput_
SetText sets the Text field's value.
func (*ModelInvocationInput_) SetTraceId ¶
func (s *ModelInvocationInput_) SetTraceId(v string) *ModelInvocationInput_
SetTraceId sets the TraceId field's value.
func (*ModelInvocationInput_) SetType ¶
func (s *ModelInvocationInput_) SetType(v string) *ModelInvocationInput_
SetType sets the Type field's value.
func (ModelInvocationInput_) String ¶
func (s ModelInvocationInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Observation ¶
type Observation struct { // Contains the JSON-formatted string returned by the API invoked by the action // group. ActionGroupInvocationOutput *ActionGroupInvocationOutput_ `locationName:"actionGroupInvocationOutput" type:"structure"` // Contains the JSON-formatted string returned by the API invoked by the code // interpreter. CodeInterpreterInvocationOutput *CodeInterpreterInvocationOutput_ `locationName:"codeInterpreterInvocationOutput" type:"structure"` // Contains details about the response to the user. FinalResponse *FinalResponse `locationName:"finalResponse" type:"structure"` // Contains details about the results from looking up the knowledge base. KnowledgeBaseLookupOutput *KnowledgeBaseLookupOutput_ `locationName:"knowledgeBaseLookupOutput" type:"structure"` // Contains details about the response to reprompt the input. // // RepromptResponse is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Observation's // String and GoString methods. RepromptResponse *RepromptResponse `locationName:"repromptResponse" type:"structure" sensitive:"true"` // The unique identifier of the trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // Specifies what kind of information the agent returns in the observation. // The following values are possible. // // * ACTION_GROUP – The agent returns the result of an action group. // // * KNOWLEDGE_BASE – The agent returns information from a knowledge base. // // * FINISH – The agent returns a final response to the user with no follow-up. // // * ASK_USER – The agent asks the user a question. // // * REPROMPT – The agent prompts the user again for the same information. Type *string `locationName:"type" type:"string" enum:"Type"` // contains filtered or unexported fields }
Contains the result or output of an action group or knowledge base, or the response to the user.
func (Observation) GoString ¶
func (s Observation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Observation) SetActionGroupInvocationOutput ¶
func (s *Observation) SetActionGroupInvocationOutput(v *ActionGroupInvocationOutput_) *Observation
SetActionGroupInvocationOutput sets the ActionGroupInvocationOutput field's value.
func (*Observation) SetCodeInterpreterInvocationOutput ¶ added in v1.54.18
func (s *Observation) SetCodeInterpreterInvocationOutput(v *CodeInterpreterInvocationOutput_) *Observation
SetCodeInterpreterInvocationOutput sets the CodeInterpreterInvocationOutput field's value.
func (*Observation) SetFinalResponse ¶
func (s *Observation) SetFinalResponse(v *FinalResponse) *Observation
SetFinalResponse sets the FinalResponse field's value.
func (*Observation) SetKnowledgeBaseLookupOutput ¶
func (s *Observation) SetKnowledgeBaseLookupOutput(v *KnowledgeBaseLookupOutput_) *Observation
SetKnowledgeBaseLookupOutput sets the KnowledgeBaseLookupOutput field's value.
func (*Observation) SetRepromptResponse ¶
func (s *Observation) SetRepromptResponse(v *RepromptResponse) *Observation
SetRepromptResponse sets the RepromptResponse field's value.
func (*Observation) SetTraceId ¶
func (s *Observation) SetTraceId(v string) *Observation
SetTraceId sets the TraceId field's value.
func (*Observation) SetType ¶
func (s *Observation) SetType(v string) *Observation
SetType sets the Type field's value.
func (Observation) String ¶
func (s Observation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type OrchestrationConfiguration ¶ added in v1.54.18
type OrchestrationConfiguration struct { // To split up the prompt and retrieve multiple sources, set the transformation // type to QUERY_DECOMPOSITION. // // QueryTransformationConfiguration is a required field QueryTransformationConfiguration *QueryTransformationConfiguration `locationName:"queryTransformationConfiguration" type:"structure" required:"true"` // contains filtered or unexported fields }
Settings for how the model processes the prompt prior to retrieval and generation.
func (OrchestrationConfiguration) GoString ¶ added in v1.54.18
func (s OrchestrationConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*OrchestrationConfiguration) SetQueryTransformationConfiguration ¶ added in v1.54.18
func (s *OrchestrationConfiguration) SetQueryTransformationConfiguration(v *QueryTransformationConfiguration) *OrchestrationConfiguration
SetQueryTransformationConfiguration sets the QueryTransformationConfiguration field's value.
func (OrchestrationConfiguration) String ¶ added in v1.54.18
func (s OrchestrationConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*OrchestrationConfiguration) Validate ¶ added in v1.54.18
func (s *OrchestrationConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type OrchestrationTrace ¶
type OrchestrationTrace struct { // Contains information pertaining to the action group or knowledge base that // is being invoked. // // InvocationInput is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by OrchestrationTrace's // String and GoString methods. InvocationInput *InvocationInput_ `locationName:"invocationInput" type:"structure" sensitive:"true"` // The input for the orchestration step. // // * The type is ORCHESTRATION. // // * The text contains the prompt. // // * The inferenceConfiguration, parserMode, and overrideLambda values are // set in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) // object that was set when the agent was created or updated. // // ModelInvocationInput is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by OrchestrationTrace's // String and GoString methods. ModelInvocationInput *ModelInvocationInput_ `locationName:"modelInvocationInput" type:"structure" sensitive:"true"` // Details about the observation (the output of the action group Lambda or knowledge // base) made by the agent. // // Observation is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by OrchestrationTrace's // String and GoString methods. Observation *Observation `locationName:"observation" type:"structure" sensitive:"true"` // Details about the reasoning, based on the input, that the agent uses to justify // carrying out an action group or getting information from a knowledge base. // // Rationale is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by OrchestrationTrace's // String and GoString methods. Rationale *Rationale `locationName:"rationale" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
Details about the orchestration step, in which the agent determines the order in which actions are executed and which knowledge bases are retrieved.
func (OrchestrationTrace) GoString ¶
func (s OrchestrationTrace) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*OrchestrationTrace) SetInvocationInput ¶
func (s *OrchestrationTrace) SetInvocationInput(v *InvocationInput_) *OrchestrationTrace
SetInvocationInput sets the InvocationInput field's value.
func (*OrchestrationTrace) SetModelInvocationInput ¶
func (s *OrchestrationTrace) SetModelInvocationInput(v *ModelInvocationInput_) *OrchestrationTrace
SetModelInvocationInput sets the ModelInvocationInput field's value.
func (*OrchestrationTrace) SetObservation ¶
func (s *OrchestrationTrace) SetObservation(v *Observation) *OrchestrationTrace
SetObservation sets the Observation field's value.
func (*OrchestrationTrace) SetRationale ¶
func (s *OrchestrationTrace) SetRationale(v *Rationale) *OrchestrationTrace
SetRationale sets the Rationale field's value.
func (OrchestrationTrace) String ¶
func (s OrchestrationTrace) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type OutputFile ¶ added in v1.54.18
type OutputFile struct { // The byte count of files that contains response from code interpreter. // // Bytes is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by OutputFile's // String and GoString methods. // // Bytes is automatically base64 encoded/decoded by the SDK. Bytes []byte `locationName:"bytes" type:"blob" sensitive:"true"` // The name of the file containing response from code interpreter. Name *string `locationName:"name" type:"string"` // The type of file that contains response from the code interpreter. Type *string `locationName:"type" type:"string"` // contains filtered or unexported fields }
Contains details of the response from code interpreter.
func (OutputFile) GoString ¶ added in v1.54.18
func (s OutputFile) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*OutputFile) SetBytes ¶ added in v1.54.18
func (s *OutputFile) SetBytes(v []byte) *OutputFile
SetBytes sets the Bytes field's value.
func (*OutputFile) SetName ¶ added in v1.54.18
func (s *OutputFile) SetName(v string) *OutputFile
SetName sets the Name field's value.
func (*OutputFile) SetType ¶ added in v1.54.18
func (s *OutputFile) SetType(v string) *OutputFile
SetType sets the Type field's value.
func (OutputFile) String ¶ added in v1.54.18
func (s OutputFile) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type Parameter ¶
type Parameter struct { // The name of the parameter. Name *string `locationName:"name" type:"string"` // The type of the parameter. Type *string `locationName:"type" type:"string"` // The value of the parameter. Value *string `locationName:"value" type:"string"` // contains filtered or unexported fields }
A parameter for the API request or function.
func (Parameter) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PayloadPart ¶
type PayloadPart struct { // Contains citations for a part of an agent response. Attribution *Attribution `locationName:"attribution" type:"structure"` // A part of the agent response in bytes. // // Bytes is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PayloadPart's // String and GoString methods. // // Bytes is automatically base64 encoded/decoded by the SDK. Bytes []byte `locationName:"bytes" type:"blob" sensitive:"true"` // contains filtered or unexported fields }
Contains a part of an agent response and citations for it.
func (PayloadPart) GoString ¶
func (s PayloadPart) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PayloadPart) MarshalEvent ¶
func (s *PayloadPart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*PayloadPart) SetAttribution ¶
func (s *PayloadPart) SetAttribution(v *Attribution) *PayloadPart
SetAttribution sets the Attribution field's value.
func (*PayloadPart) SetBytes ¶
func (s *PayloadPart) SetBytes(v []byte) *PayloadPart
SetBytes sets the Bytes field's value.
func (PayloadPart) String ¶
func (s PayloadPart) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PayloadPart) UnmarshalEvent ¶
func (s *PayloadPart) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the PayloadPart value. This method is only used internally within the SDK's EventStream handling.
type PostProcessingModelInvocationOutput_ ¶
type PostProcessingModelInvocationOutput_ struct { // Details about the response from the Lambda parsing of the output of the post-processing // step. // // ParsedResponse is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PostProcessingModelInvocationOutput_'s // String and GoString methods. ParsedResponse *PostProcessingParsedResponse `locationName:"parsedResponse" type:"structure" sensitive:"true"` // The unique identifier of the trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // contains filtered or unexported fields }
The foundation model output from the post-processing step.
func (PostProcessingModelInvocationOutput_) GoString ¶
func (s PostProcessingModelInvocationOutput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PostProcessingModelInvocationOutput_) SetParsedResponse ¶
func (s *PostProcessingModelInvocationOutput_) SetParsedResponse(v *PostProcessingParsedResponse) *PostProcessingModelInvocationOutput_
SetParsedResponse sets the ParsedResponse field's value.
func (*PostProcessingModelInvocationOutput_) SetTraceId ¶
func (s *PostProcessingModelInvocationOutput_) SetTraceId(v string) *PostProcessingModelInvocationOutput_
SetTraceId sets the TraceId field's value.
func (PostProcessingModelInvocationOutput_) String ¶
func (s PostProcessingModelInvocationOutput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PostProcessingParsedResponse ¶
type PostProcessingParsedResponse struct { // The text returned by the parser. // // Text is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PostProcessingParsedResponse's // String and GoString methods. Text *string `locationName:"text" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Details about the response from the Lambda parsing of the output from the post-processing step.
func (PostProcessingParsedResponse) GoString ¶
func (s PostProcessingParsedResponse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PostProcessingParsedResponse) SetText ¶
func (s *PostProcessingParsedResponse) SetText(v string) *PostProcessingParsedResponse
SetText sets the Text field's value.
func (PostProcessingParsedResponse) String ¶
func (s PostProcessingParsedResponse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PostProcessingTrace ¶
type PostProcessingTrace struct { // The input for the post-processing step. // // * The type is POST_PROCESSING. // // * The text contains the prompt. // // * The inferenceConfiguration, parserMode, and overrideLambda values are // set in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) // object that was set when the agent was created or updated. // // ModelInvocationInput is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PostProcessingTrace's // String and GoString methods. ModelInvocationInput *ModelInvocationInput_ `locationName:"modelInvocationInput" type:"structure" sensitive:"true"` // The foundation model output from the post-processing step. // // ModelInvocationOutput is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PostProcessingTrace's // String and GoString methods. ModelInvocationOutput *PostProcessingModelInvocationOutput_ `locationName:"modelInvocationOutput" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
Details about the post-processing step, in which the agent shapes the response.
func (PostProcessingTrace) GoString ¶
func (s PostProcessingTrace) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PostProcessingTrace) SetModelInvocationInput ¶
func (s *PostProcessingTrace) SetModelInvocationInput(v *ModelInvocationInput_) *PostProcessingTrace
SetModelInvocationInput sets the ModelInvocationInput field's value.
func (*PostProcessingTrace) SetModelInvocationOutput ¶
func (s *PostProcessingTrace) SetModelInvocationOutput(v *PostProcessingModelInvocationOutput_) *PostProcessingTrace
SetModelInvocationOutput sets the ModelInvocationOutput field's value.
func (PostProcessingTrace) String ¶
func (s PostProcessingTrace) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PreProcessingModelInvocationOutput_ ¶
type PreProcessingModelInvocationOutput_ struct { // Details about the response from the Lambda parsing of the output of the pre-processing // step. // // ParsedResponse is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PreProcessingModelInvocationOutput_'s // String and GoString methods. ParsedResponse *PreProcessingParsedResponse `locationName:"parsedResponse" type:"structure" sensitive:"true"` // The unique identifier of the trace. TraceId *string `locationName:"traceId" min:"2" type:"string"` // contains filtered or unexported fields }
The foundation model output from the pre-processing step.
func (PreProcessingModelInvocationOutput_) GoString ¶
func (s PreProcessingModelInvocationOutput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PreProcessingModelInvocationOutput_) SetParsedResponse ¶
func (s *PreProcessingModelInvocationOutput_) SetParsedResponse(v *PreProcessingParsedResponse) *PreProcessingModelInvocationOutput_
SetParsedResponse sets the ParsedResponse field's value.
func (*PreProcessingModelInvocationOutput_) SetTraceId ¶
func (s *PreProcessingModelInvocationOutput_) SetTraceId(v string) *PreProcessingModelInvocationOutput_
SetTraceId sets the TraceId field's value.
func (PreProcessingModelInvocationOutput_) String ¶
func (s PreProcessingModelInvocationOutput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PreProcessingParsedResponse ¶
type PreProcessingParsedResponse struct { // Whether the user input is valid or not. If false, the agent doesn't proceed // to orchestration. IsValid *bool `locationName:"isValid" type:"boolean"` // The text returned by the parsing of the pre-processing step, explaining the // steps that the agent plans to take in orchestration, if the user input is // valid. // // Rationale is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PreProcessingParsedResponse's // String and GoString methods. Rationale *string `locationName:"rationale" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Details about the response from the Lambda parsing of the output from the pre-processing step.
func (PreProcessingParsedResponse) GoString ¶
func (s PreProcessingParsedResponse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PreProcessingParsedResponse) SetIsValid ¶
func (s *PreProcessingParsedResponse) SetIsValid(v bool) *PreProcessingParsedResponse
SetIsValid sets the IsValid field's value.
func (*PreProcessingParsedResponse) SetRationale ¶
func (s *PreProcessingParsedResponse) SetRationale(v string) *PreProcessingParsedResponse
SetRationale sets the Rationale field's value.
func (PreProcessingParsedResponse) String ¶
func (s PreProcessingParsedResponse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PreProcessingTrace ¶
type PreProcessingTrace struct { // The input for the pre-processing step. // // * The type is PRE_PROCESSING. // // * The text contains the prompt. // // * The inferenceConfiguration, parserMode, and overrideLambda values are // set in the PromptOverrideConfiguration (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html) // object that was set when the agent was created or updated. // // ModelInvocationInput is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PreProcessingTrace's // String and GoString methods. ModelInvocationInput *ModelInvocationInput_ `locationName:"modelInvocationInput" type:"structure" sensitive:"true"` // The foundation model output from the pre-processing step. // // ModelInvocationOutput is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PreProcessingTrace's // String and GoString methods. ModelInvocationOutput *PreProcessingModelInvocationOutput_ `locationName:"modelInvocationOutput" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.
func (PreProcessingTrace) GoString ¶
func (s PreProcessingTrace) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PreProcessingTrace) SetModelInvocationInput ¶
func (s *PreProcessingTrace) SetModelInvocationInput(v *ModelInvocationInput_) *PreProcessingTrace
SetModelInvocationInput sets the ModelInvocationInput field's value.
func (*PreProcessingTrace) SetModelInvocationOutput ¶
func (s *PreProcessingTrace) SetModelInvocationOutput(v *PreProcessingModelInvocationOutput_) *PreProcessingTrace
SetModelInvocationOutput sets the ModelInvocationOutput field's value.
func (PreProcessingTrace) String ¶
func (s PreProcessingTrace) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type PromptTemplate ¶ added in v1.51.8
type PromptTemplate struct { // The template for the prompt that's sent to the model for response generation. // You can include prompt placeholders, which become replaced before the prompt // is sent to the model to provide instructions and context to the model. In // addition, you can include XML tags to delineate meaningful sections of the // prompt template. // // For more information, see the following resources: // // * Knowledge base prompt templates (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt) // // * Use XML tags with Anthropic Claude models (https://docs.anthropic.com/claude/docs/use-xml-tags) // // TextPromptTemplate is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by PromptTemplate's // String and GoString methods. TextPromptTemplate *string `locationName:"textPromptTemplate" min:"1" type:"string" sensitive:"true"` // contains filtered or unexported fields }
Contains the template for the prompt that's sent to the model for response generation. For more information, see Knowledge base prompt templates (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html#kb-test-config-sysprompt).
This data type is used in the following API operations:
- RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the filter field
func (PromptTemplate) GoString ¶ added in v1.51.8
func (s PromptTemplate) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PromptTemplate) SetTextPromptTemplate ¶ added in v1.51.8
func (s *PromptTemplate) SetTextPromptTemplate(v string) *PromptTemplate
SetTextPromptTemplate sets the TextPromptTemplate field's value.
func (PromptTemplate) String ¶ added in v1.51.8
func (s PromptTemplate) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PromptTemplate) Validate ¶ added in v1.51.8
func (s *PromptTemplate) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type PropertyParameters ¶ added in v1.51.26
type PropertyParameters struct { // A list of parameters in the request body. Properties []*Parameter `locationName:"properties" type:"list"` // contains filtered or unexported fields }
Contains the parameters in the request body.
func (PropertyParameters) GoString ¶ added in v1.51.26
func (s PropertyParameters) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*PropertyParameters) SetProperties ¶ added in v1.51.26
func (s *PropertyParameters) SetProperties(v []*Parameter) *PropertyParameters
SetProperties sets the Properties field's value.
func (PropertyParameters) String ¶ added in v1.51.26
func (s PropertyParameters) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type QueryTransformationConfiguration ¶ added in v1.54.18
type QueryTransformationConfiguration struct { // The type of transformation to apply to the prompt. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"QueryTransformationType"` // contains filtered or unexported fields }
To split up the prompt and retrieve multiple sources, set the transformation type to QUERY_DECOMPOSITION.
func (QueryTransformationConfiguration) GoString ¶ added in v1.54.18
func (s QueryTransformationConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*QueryTransformationConfiguration) SetType ¶ added in v1.54.18
func (s *QueryTransformationConfiguration) SetType(v string) *QueryTransformationConfiguration
SetType sets the Type field's value.
func (QueryTransformationConfiguration) String ¶ added in v1.54.18
func (s QueryTransformationConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*QueryTransformationConfiguration) Validate ¶ added in v1.54.18
func (s *QueryTransformationConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Rationale ¶
type Rationale struct { // The reasoning or thought process of the agent, based on the input. // // Text is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Rationale's // String and GoString methods. Text *string `locationName:"text" type:"string" sensitive:"true"` // The unique identifier of the trace step. TraceId *string `locationName:"traceId" min:"2" type:"string"` // contains filtered or unexported fields }
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.
func (Rationale) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Rationale) SetTraceId ¶
SetTraceId sets the TraceId field's value.
type RepromptResponse ¶
type RepromptResponse struct { // Specifies what output is prompting the agent to reprompt the input. // // Source is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RepromptResponse's // String and GoString methods. Source *string `locationName:"source" type:"string" enum:"Source" sensitive:"true"` // The text reprompting the input. Text *string `locationName:"text" type:"string"` // contains filtered or unexported fields }
Contains details about the agent's response to reprompt the input.
func (RepromptResponse) GoString ¶
func (s RepromptResponse) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RepromptResponse) SetSource ¶
func (s *RepromptResponse) SetSource(v string) *RepromptResponse
SetSource sets the Source field's value.
func (*RepromptResponse) SetText ¶
func (s *RepromptResponse) SetText(v string) *RepromptResponse
SetText sets the Text field's value.
func (RepromptResponse) String ¶
func (s RepromptResponse) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RequestBody ¶
type RequestBody struct { // The content in the request body. Content map[string][]*Parameter `locationName:"content" type:"map"` // contains filtered or unexported fields }
The parameters in the API request body.
func (RequestBody) GoString ¶
func (s RequestBody) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RequestBody) SetContent ¶
func (s *RequestBody) SetContent(v map[string][]*Parameter) *RequestBody
SetContent sets the Content field's value.
func (RequestBody) String ¶
func (s RequestBody) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ResourceNotFoundException ¶
type ResourceNotFoundException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
func (*ResourceNotFoundException) Code ¶
func (s *ResourceNotFoundException) Code() string
Code returns the exception type name.
func (*ResourceNotFoundException) Error ¶
func (s *ResourceNotFoundException) Error() string
func (ResourceNotFoundException) GoString ¶
func (s ResourceNotFoundException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ResourceNotFoundException) MarshalEvent ¶
func (s *ResourceNotFoundException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ResourceNotFoundException) Message ¶
func (s *ResourceNotFoundException) Message() string
Message returns the exception's message.
func (*ResourceNotFoundException) OrigErr ¶
func (s *ResourceNotFoundException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ResourceNotFoundException) RequestID ¶
func (s *ResourceNotFoundException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ResourceNotFoundException) StatusCode ¶
func (s *ResourceNotFoundException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ResourceNotFoundException) String ¶
func (s ResourceNotFoundException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ResourceNotFoundException) UnmarshalEvent ¶
func (s *ResourceNotFoundException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ResourceNotFoundException value. This method is only used internally within the SDK's EventStream handling.
type ResponseStreamEvent ¶
type ResponseStreamEvent interface { eventstreamapi.Marshaler eventstreamapi.Unmarshaler // contains filtered or unexported methods }
ResponseStreamEvent groups together all EventStream events writes for ResponseStream.
These events are:
- PayloadPart
- FilePart
- ReturnControlPayload
- TracePart
type ResponseStreamReader ¶
type ResponseStreamReader interface { // Returns a channel of events as they are read from the event stream. Events() <-chan ResponseStreamEvent // Close will stop the reader reading events from the stream. Close() error // Returns any error that has occurred while reading from the event stream. Err() error }
ResponseStreamReader provides the interface for reading to the stream. The default implementation for this interface will be ResponseStream.
The reader's Close method must allow multiple concurrent calls.
These events are:
- PayloadPart
- FilePart
- ReturnControlPayload
- TracePart
- ResponseStreamUnknownEvent
type ResponseStreamUnknownEvent ¶
type ResponseStreamUnknownEvent struct { Type string Message eventstream.Message }
ResponseStreamUnknownEvent provides a failsafe event for the ResponseStream group of events when an unknown event is received.
func (*ResponseStreamUnknownEvent) MarshalEvent ¶
func (e *ResponseStreamUnknownEvent) MarshalEvent(pm protocol.PayloadMarshaler) ( msg eventstream.Message, err error, )
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ResponseStreamUnknownEvent) UnmarshalEvent ¶
func (e *ResponseStreamUnknownEvent) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ResponseStream value. This method is only used internally within the SDK's EventStream handling.
type RetrievalFilter ¶ added in v1.51.9
type RetrievalFilter struct { // Knowledge base data sources are returned if their metadata attributes fulfill // all the filter conditions inside this list. AndAll []*RetrievalFilter `locationName:"andAll" min:"2" type:"list" sensitive:"true"` // Knowledge base data sources are returned if their metadata attributes fulfill // at least one of the filter conditions inside this list. OrAll []*RetrievalFilter `locationName:"orAll" min:"2" type:"list" sensitive:"true"` // contains filtered or unexported fields }
Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). See the examples below to see how to use these filters.
This data type is used in the following API operations:
Retrieve request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax) – in the filter field
RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the filter field
func (RetrievalFilter) GoString ¶ added in v1.51.9
func (s RetrievalFilter) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalFilter) SetAndAll ¶ added in v1.51.9
func (s *RetrievalFilter) SetAndAll(v []*RetrievalFilter) *RetrievalFilter
SetAndAll sets the AndAll field's value.
func (*RetrievalFilter) SetOrAll ¶ added in v1.51.9
func (s *RetrievalFilter) SetOrAll(v []*RetrievalFilter) *RetrievalFilter
SetOrAll sets the OrAll field's value.
func (RetrievalFilter) String ¶ added in v1.51.9
func (s RetrievalFilter) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalFilter) Validate ¶ added in v1.51.9
func (s *RetrievalFilter) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetrievalResultConfluenceLocation ¶ added in v1.54.18
type RetrievalResultConfluenceLocation struct { // The Confluence host URL for the data source location. Url *string `locationName:"url" type:"string"` // contains filtered or unexported fields }
The Confluence data source location.
func (RetrievalResultConfluenceLocation) GoString ¶ added in v1.54.18
func (s RetrievalResultConfluenceLocation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultConfluenceLocation) SetUrl ¶ added in v1.54.18
func (s *RetrievalResultConfluenceLocation) SetUrl(v string) *RetrievalResultConfluenceLocation
SetUrl sets the Url field's value.
func (RetrievalResultConfluenceLocation) String ¶ added in v1.54.18
func (s RetrievalResultConfluenceLocation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievalResultContent ¶
type RetrievalResultContent struct { // The cited text from the data source. // // Text is a required field Text *string `locationName:"text" type:"string" required:"true"` // contains filtered or unexported fields }
Contains the cited text from the data source.
This data type is used in the following API operations:
Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) – in the content field
RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the content field
InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the content field
func (RetrievalResultContent) GoString ¶
func (s RetrievalResultContent) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultContent) SetText ¶
func (s *RetrievalResultContent) SetText(v string) *RetrievalResultContent
SetText sets the Text field's value.
func (RetrievalResultContent) String ¶
func (s RetrievalResultContent) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievalResultLocation ¶
type RetrievalResultLocation struct { // The Confluence data source location. ConfluenceLocation *RetrievalResultConfluenceLocation `locationName:"confluenceLocation" type:"structure"` // The S3 data source location. S3Location *RetrievalResultS3Location `locationName:"s3Location" type:"structure"` // The Salesforce data source location. SalesforceLocation *RetrievalResultSalesforceLocation `locationName:"salesforceLocation" type:"structure"` SharePointLocation *RetrievalResultSharePointLocation `locationName:"sharePointLocation" type:"structure"` // The type of data source location. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"RetrievalResultLocationType"` // The web URL/URLs data source location. WebLocation *RetrievalResultWebLocation `locationName:"webLocation" type:"structure"` // contains filtered or unexported fields }
Contains information about the data source location.
This data type is used in the following API operations:
Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) – in the location field
RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the location field
InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the locatino field
func (RetrievalResultLocation) GoString ¶
func (s RetrievalResultLocation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultLocation) SetConfluenceLocation ¶ added in v1.54.18
func (s *RetrievalResultLocation) SetConfluenceLocation(v *RetrievalResultConfluenceLocation) *RetrievalResultLocation
SetConfluenceLocation sets the ConfluenceLocation field's value.
func (*RetrievalResultLocation) SetS3Location ¶
func (s *RetrievalResultLocation) SetS3Location(v *RetrievalResultS3Location) *RetrievalResultLocation
SetS3Location sets the S3Location field's value.
func (*RetrievalResultLocation) SetSalesforceLocation ¶ added in v1.54.18
func (s *RetrievalResultLocation) SetSalesforceLocation(v *RetrievalResultSalesforceLocation) *RetrievalResultLocation
SetSalesforceLocation sets the SalesforceLocation field's value.
func (*RetrievalResultLocation) SetSharePointLocation ¶ added in v1.54.18
func (s *RetrievalResultLocation) SetSharePointLocation(v *RetrievalResultSharePointLocation) *RetrievalResultLocation
SetSharePointLocation sets the SharePointLocation field's value.
func (*RetrievalResultLocation) SetType ¶
func (s *RetrievalResultLocation) SetType(v string) *RetrievalResultLocation
SetType sets the Type field's value.
func (*RetrievalResultLocation) SetWebLocation ¶ added in v1.54.18
func (s *RetrievalResultLocation) SetWebLocation(v *RetrievalResultWebLocation) *RetrievalResultLocation
SetWebLocation sets the WebLocation field's value.
func (RetrievalResultLocation) String ¶
func (s RetrievalResultLocation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievalResultS3Location ¶
type RetrievalResultS3Location struct { // The S3 URI for the data source location. Uri *string `locationName:"uri" type:"string"` // contains filtered or unexported fields }
The S3 data source location.
This data type is used in the following API operations:
Retrieve response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_ResponseSyntax) – in the s3Location field
RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the s3Location field
InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the s3Location field
func (RetrievalResultS3Location) GoString ¶
func (s RetrievalResultS3Location) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultS3Location) SetUri ¶
func (s *RetrievalResultS3Location) SetUri(v string) *RetrievalResultS3Location
SetUri sets the Uri field's value.
func (RetrievalResultS3Location) String ¶
func (s RetrievalResultS3Location) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievalResultSalesforceLocation ¶ added in v1.54.18
type RetrievalResultSalesforceLocation struct { // The Salesforce host URL for the data source location. Url *string `locationName:"url" type:"string"` // contains filtered or unexported fields }
The Salesforce data source location.
func (RetrievalResultSalesforceLocation) GoString ¶ added in v1.54.18
func (s RetrievalResultSalesforceLocation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultSalesforceLocation) SetUrl ¶ added in v1.54.18
func (s *RetrievalResultSalesforceLocation) SetUrl(v string) *RetrievalResultSalesforceLocation
SetUrl sets the Url field's value.
func (RetrievalResultSalesforceLocation) String ¶ added in v1.54.18
func (s RetrievalResultSalesforceLocation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievalResultSharePointLocation ¶ added in v1.54.18
type RetrievalResultSharePointLocation struct { string `locationName:"url" type:"string"` // contains filtered or unexported fields }Url *
The SharePoint data source location.
func (RetrievalResultSharePointLocation) GoString ¶ added in v1.54.18
func (s RetrievalResultSharePointLocation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultSharePointLocation) SetUrl ¶ added in v1.54.18
func (s *RetrievalResultSharePointLocation) SetUrl(v string) *RetrievalResultSharePointLocation
SetUrl sets the Url field's value.
func (RetrievalResultSharePointLocation) String ¶ added in v1.54.18
func (s RetrievalResultSharePointLocation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievalResultWebLocation ¶ added in v1.54.18
type RetrievalResultWebLocation struct { // The web URL/URLs for the data source location. Url *string `locationName:"url" type:"string"` // contains filtered or unexported fields }
The web URL/URLs data source location.
func (RetrievalResultWebLocation) GoString ¶ added in v1.54.18
func (s RetrievalResultWebLocation) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievalResultWebLocation) SetUrl ¶ added in v1.54.18
func (s *RetrievalResultWebLocation) SetUrl(v string) *RetrievalResultWebLocation
SetUrl sets the Url field's value.
func (RetrievalResultWebLocation) String ¶ added in v1.54.18
func (s RetrievalResultWebLocation) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrieveAndGenerateConfiguration ¶
type RetrieveAndGenerateConfiguration struct { // The configuration used with the external source wrapper object in the retrieveAndGenerate // function. ExternalSourcesConfiguration *ExternalSourcesRetrieveAndGenerateConfiguration `locationName:"externalSourcesConfiguration" type:"structure"` // Contains details about the resource being queried. KnowledgeBaseConfiguration *KnowledgeBaseRetrieveAndGenerateConfiguration `locationName:"knowledgeBaseConfiguration" type:"structure"` // The type of resource that is queried by the request. // // Type is a required field Type *string `locationName:"type" type:"string" required:"true" enum:"RetrieveAndGenerateType"` // contains filtered or unexported fields }
Contains details about the resource being queried.
This data type is used in the following API operations:
- RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the retrieveAndGenerateConfiguration field
func (RetrieveAndGenerateConfiguration) GoString ¶
func (s RetrieveAndGenerateConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateConfiguration) SetExternalSourcesConfiguration ¶ added in v1.51.27
func (s *RetrieveAndGenerateConfiguration) SetExternalSourcesConfiguration(v *ExternalSourcesRetrieveAndGenerateConfiguration) *RetrieveAndGenerateConfiguration
SetExternalSourcesConfiguration sets the ExternalSourcesConfiguration field's value.
func (*RetrieveAndGenerateConfiguration) SetKnowledgeBaseConfiguration ¶
func (s *RetrieveAndGenerateConfiguration) SetKnowledgeBaseConfiguration(v *KnowledgeBaseRetrieveAndGenerateConfiguration) *RetrieveAndGenerateConfiguration
SetKnowledgeBaseConfiguration sets the KnowledgeBaseConfiguration field's value.
func (*RetrieveAndGenerateConfiguration) SetType ¶
func (s *RetrieveAndGenerateConfiguration) SetType(v string) *RetrieveAndGenerateConfiguration
SetType sets the Type field's value.
func (RetrieveAndGenerateConfiguration) String ¶
func (s RetrieveAndGenerateConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateConfiguration) Validate ¶
func (s *RetrieveAndGenerateConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetrieveAndGenerateInput ¶
type RetrieveAndGenerateInput struct { // Contains the query to be made to the knowledge base. // // Input is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrieveAndGenerateInput's // String and GoString methods. // // Input is a required field Input *RetrieveAndGenerateInput_ `locationName:"input" type:"structure" required:"true" sensitive:"true"` // Contains configurations for the knowledge base query and retrieval process. // For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). RetrieveAndGenerateConfiguration *RetrieveAndGenerateConfiguration `locationName:"retrieveAndGenerateConfiguration" type:"structure"` // Contains details about the session with the knowledge base. SessionConfiguration *RetrieveAndGenerateSessionConfiguration `locationName:"sessionConfiguration" type:"structure"` // The unique identifier of the session. When you first make a RetrieveAndGenerate // request, Amazon Bedrock automatically generates this value. You must reuse // this value for all subsequent requests in the same conversational session. // This value allows Amazon Bedrock to maintain context and knowledge from previous // interactions. You can't explicitly set the sessionId yourself. SessionId *string `locationName:"sessionId" min:"2" type:"string"` // contains filtered or unexported fields }
func (RetrieveAndGenerateInput) GoString ¶
func (s RetrieveAndGenerateInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateInput) SetInput ¶
func (s *RetrieveAndGenerateInput) SetInput(v *RetrieveAndGenerateInput_) *RetrieveAndGenerateInput
SetInput sets the Input field's value.
func (*RetrieveAndGenerateInput) SetRetrieveAndGenerateConfiguration ¶
func (s *RetrieveAndGenerateInput) SetRetrieveAndGenerateConfiguration(v *RetrieveAndGenerateConfiguration) *RetrieveAndGenerateInput
SetRetrieveAndGenerateConfiguration sets the RetrieveAndGenerateConfiguration field's value.
func (*RetrieveAndGenerateInput) SetSessionConfiguration ¶
func (s *RetrieveAndGenerateInput) SetSessionConfiguration(v *RetrieveAndGenerateSessionConfiguration) *RetrieveAndGenerateInput
SetSessionConfiguration sets the SessionConfiguration field's value.
func (*RetrieveAndGenerateInput) SetSessionId ¶
func (s *RetrieveAndGenerateInput) SetSessionId(v string) *RetrieveAndGenerateInput
SetSessionId sets the SessionId field's value.
func (RetrieveAndGenerateInput) String ¶
func (s RetrieveAndGenerateInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateInput) Validate ¶
func (s *RetrieveAndGenerateInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetrieveAndGenerateInput_ ¶
type RetrieveAndGenerateInput_ struct { // The query made to the knowledge base. // // Text is a required field Text *string `locationName:"text" type:"string" required:"true"` // contains filtered or unexported fields }
Contains the query made to the knowledge base.
This data type is used in the following API operations:
- RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the input field
func (RetrieveAndGenerateInput_) GoString ¶
func (s RetrieveAndGenerateInput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateInput_) SetText ¶
func (s *RetrieveAndGenerateInput_) SetText(v string) *RetrieveAndGenerateInput_
SetText sets the Text field's value.
func (RetrieveAndGenerateInput_) String ¶
func (s RetrieveAndGenerateInput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateInput_) Validate ¶
func (s *RetrieveAndGenerateInput_) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetrieveAndGenerateOutput ¶
type RetrieveAndGenerateOutput struct { // A list of segments of the generated response that are based on sources in // the knowledge base, alongside information about the sources. Citations []*Citation `locationName:"citations" type:"list"` // Specifies if there is a guardrail intervention in the response. GuardrailAction *string `locationName:"guardrailAction" type:"string" enum:"GuadrailAction"` // Contains the response generated from querying the knowledge base. // // Output is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrieveAndGenerateOutput's // String and GoString methods. // // Output is a required field Output *RetrieveAndGenerateOutput_ `locationName:"output" type:"structure" required:"true" sensitive:"true"` // The unique identifier of the session. When you first make a RetrieveAndGenerate // request, Amazon Bedrock automatically generates this value. You must reuse // this value for all subsequent requests in the same conversational session. // This value allows Amazon Bedrock to maintain context and knowledge from previous // interactions. You can't explicitly set the sessionId yourself. // // SessionId is a required field SessionId *string `locationName:"sessionId" min:"2" type:"string" required:"true"` // contains filtered or unexported fields }
func (RetrieveAndGenerateOutput) GoString ¶
func (s RetrieveAndGenerateOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateOutput) SetCitations ¶
func (s *RetrieveAndGenerateOutput) SetCitations(v []*Citation) *RetrieveAndGenerateOutput
SetCitations sets the Citations field's value.
func (*RetrieveAndGenerateOutput) SetGuardrailAction ¶ added in v1.52.6
func (s *RetrieveAndGenerateOutput) SetGuardrailAction(v string) *RetrieveAndGenerateOutput
SetGuardrailAction sets the GuardrailAction field's value.
func (*RetrieveAndGenerateOutput) SetOutput ¶
func (s *RetrieveAndGenerateOutput) SetOutput(v *RetrieveAndGenerateOutput_) *RetrieveAndGenerateOutput
SetOutput sets the Output field's value.
func (*RetrieveAndGenerateOutput) SetSessionId ¶
func (s *RetrieveAndGenerateOutput) SetSessionId(v string) *RetrieveAndGenerateOutput
SetSessionId sets the SessionId field's value.
func (RetrieveAndGenerateOutput) String ¶
func (s RetrieveAndGenerateOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrieveAndGenerateOutput_ ¶
type RetrieveAndGenerateOutput_ struct { // The response generated from querying the knowledge base. // // Text is a required field Text *string `locationName:"text" type:"string" required:"true"` // contains filtered or unexported fields }
Contains the response generated from querying the knowledge base.
This data type is used in the following API operations:
- RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the output field
func (RetrieveAndGenerateOutput_) GoString ¶
func (s RetrieveAndGenerateOutput_) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateOutput_) SetText ¶
func (s *RetrieveAndGenerateOutput_) SetText(v string) *RetrieveAndGenerateOutput_
SetText sets the Text field's value.
func (RetrieveAndGenerateOutput_) String ¶
func (s RetrieveAndGenerateOutput_) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrieveAndGenerateSessionConfiguration ¶
type RetrieveAndGenerateSessionConfiguration struct { // The ARN of the KMS key encrypting the session. // // KmsKeyArn is a required field KmsKeyArn *string `locationName:"kmsKeyArn" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Contains configuration about the session with the knowledge base.
This data type is used in the following API operations:
- RetrieveAndGenerate request (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax) – in the sessionConfiguration field
func (RetrieveAndGenerateSessionConfiguration) GoString ¶
func (s RetrieveAndGenerateSessionConfiguration) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateSessionConfiguration) SetKmsKeyArn ¶
func (s *RetrieveAndGenerateSessionConfiguration) SetKmsKeyArn(v string) *RetrieveAndGenerateSessionConfiguration
SetKmsKeyArn sets the KmsKeyArn field's value.
func (RetrieveAndGenerateSessionConfiguration) String ¶
func (s RetrieveAndGenerateSessionConfiguration) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveAndGenerateSessionConfiguration) Validate ¶
func (s *RetrieveAndGenerateSessionConfiguration) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetrieveInput ¶
type RetrieveInput struct { // The unique identifier of the knowledge base to query. // // KnowledgeBaseId is a required field KnowledgeBaseId *string `location:"uri" locationName:"knowledgeBaseId" type:"string" required:"true"` // If there are more results than can fit in the response, the response returns // a nextToken. Use this token in the nextToken field of another request to // retrieve the next batch of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // Contains configurations for the knowledge base query and retrieval process. // For more information, see Query configurations (https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html). RetrievalConfiguration *KnowledgeBaseRetrievalConfiguration `locationName:"retrievalConfiguration" type:"structure"` // Contains the query to send the knowledge base. // // RetrievalQuery is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrieveInput's // String and GoString methods. // // RetrievalQuery is a required field RetrievalQuery *KnowledgeBaseQuery `locationName:"retrievalQuery" type:"structure" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (RetrieveInput) GoString ¶
func (s RetrieveInput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveInput) SetKnowledgeBaseId ¶
func (s *RetrieveInput) SetKnowledgeBaseId(v string) *RetrieveInput
SetKnowledgeBaseId sets the KnowledgeBaseId field's value.
func (*RetrieveInput) SetNextToken ¶
func (s *RetrieveInput) SetNextToken(v string) *RetrieveInput
SetNextToken sets the NextToken field's value.
func (*RetrieveInput) SetRetrievalConfiguration ¶
func (s *RetrieveInput) SetRetrievalConfiguration(v *KnowledgeBaseRetrievalConfiguration) *RetrieveInput
SetRetrievalConfiguration sets the RetrievalConfiguration field's value.
func (*RetrieveInput) SetRetrievalQuery ¶
func (s *RetrieveInput) SetRetrievalQuery(v *KnowledgeBaseQuery) *RetrieveInput
SetRetrievalQuery sets the RetrievalQuery field's value.
func (RetrieveInput) String ¶
func (s RetrieveInput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveInput) Validate ¶
func (s *RetrieveInput) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type RetrieveOutput ¶
type RetrieveOutput struct { // If there are more results than can fit in the response, the response returns // a nextToken. Use this token in the nextToken field of another request to // retrieve the next batch of results. NextToken *string `locationName:"nextToken" min:"1" type:"string"` // A list of results from querying the knowledge base. // // RetrievalResults is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrieveOutput's // String and GoString methods. // // RetrievalResults is a required field RetrievalResults []*KnowledgeBaseRetrievalResult `locationName:"retrievalResults" type:"list" required:"true" sensitive:"true"` // contains filtered or unexported fields }
func (RetrieveOutput) GoString ¶
func (s RetrieveOutput) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrieveOutput) SetNextToken ¶
func (s *RetrieveOutput) SetNextToken(v string) *RetrieveOutput
SetNextToken sets the NextToken field's value.
func (*RetrieveOutput) SetRetrievalResults ¶
func (s *RetrieveOutput) SetRetrievalResults(v []*KnowledgeBaseRetrievalResult) *RetrieveOutput
SetRetrievalResults sets the RetrievalResults field's value.
func (RetrieveOutput) String ¶
func (s RetrieveOutput) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type RetrievedReference ¶
type RetrievedReference struct { // Contains the cited text from the data source. // // Content is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrievedReference's // String and GoString methods. Content *RetrievalResultContent `locationName:"content" type:"structure" sensitive:"true"` // Contains information about the location of the data source. // // Location is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by RetrievedReference's // String and GoString methods. Location *RetrievalResultLocation `locationName:"location" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
Contains metadata about a source cited for the generated response.
This data type is used in the following API operations:
RetrieveAndGenerate response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the retrievedReferences field
InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the retrievedReferences field
func (RetrievedReference) GoString ¶
func (s RetrievedReference) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*RetrievedReference) SetContent ¶
func (s *RetrievedReference) SetContent(v *RetrievalResultContent) *RetrievedReference
SetContent sets the Content field's value.
func (*RetrievedReference) SetLocation ¶
func (s *RetrievedReference) SetLocation(v *RetrievalResultLocation) *RetrievedReference
SetLocation sets the Location field's value.
func (RetrievedReference) String ¶
func (s RetrievedReference) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ReturnControlPayload ¶ added in v1.51.26
type ReturnControlPayload struct { // The identifier of the action group invocation. InvocationId *string `locationName:"invocationId" type:"string"` // A list of objects that contain information about the parameters and inputs // that need to be sent into the API operation or function, based on what the // agent determines from its session with the user. InvocationInputs []*InvocationInputMember `locationName:"invocationInputs" min:"1" type:"list"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax)
func (ReturnControlPayload) GoString ¶ added in v1.51.26
func (s ReturnControlPayload) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ReturnControlPayload) MarshalEvent ¶ added in v1.51.26
func (s *ReturnControlPayload) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ReturnControlPayload) SetInvocationId ¶ added in v1.51.26
func (s *ReturnControlPayload) SetInvocationId(v string) *ReturnControlPayload
SetInvocationId sets the InvocationId field's value.
func (*ReturnControlPayload) SetInvocationInputs ¶ added in v1.51.26
func (s *ReturnControlPayload) SetInvocationInputs(v []*InvocationInputMember) *ReturnControlPayload
SetInvocationInputs sets the InvocationInputs field's value.
func (ReturnControlPayload) String ¶ added in v1.51.26
func (s ReturnControlPayload) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ReturnControlPayload) UnmarshalEvent ¶ added in v1.51.26
func (s *ReturnControlPayload) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ReturnControlPayload value. This method is only used internally within the SDK's EventStream handling.
type S3ObjectDoc ¶ added in v1.51.27
type S3ObjectDoc struct { // The file location of the S3 wrapper object. // // Uri is a required field Uri *string `locationName:"uri" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
The unique wrapper object of the document from the S3 location.
func (S3ObjectDoc) GoString ¶ added in v1.51.27
func (s S3ObjectDoc) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*S3ObjectDoc) SetUri ¶ added in v1.51.27
func (s *S3ObjectDoc) SetUri(v string) *S3ObjectDoc
SetUri sets the Uri field's value.
func (S3ObjectDoc) String ¶ added in v1.51.27
func (s S3ObjectDoc) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*S3ObjectDoc) Validate ¶ added in v1.51.27
func (s *S3ObjectDoc) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type S3ObjectFile ¶ added in v1.54.18
type S3ObjectFile struct { // The uri of the s3 object. // // Uri is a required field Uri *string `locationName:"uri" min:"1" type:"string" required:"true"` // contains filtered or unexported fields }
Contains details of the s3 object where the source file is located.
func (S3ObjectFile) GoString ¶ added in v1.54.18
func (s S3ObjectFile) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*S3ObjectFile) SetUri ¶ added in v1.54.18
func (s *S3ObjectFile) SetUri(v string) *S3ObjectFile
SetUri sets the Uri field's value.
func (S3ObjectFile) String ¶ added in v1.54.18
func (s S3ObjectFile) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*S3ObjectFile) Validate ¶ added in v1.54.18
func (s *S3ObjectFile) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type ServiceQuotaExceededException ¶
type ServiceQuotaExceededException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
The number of requests exceeds the service quota. Resubmit your request later.
func (*ServiceQuotaExceededException) Code ¶
func (s *ServiceQuotaExceededException) Code() string
Code returns the exception type name.
func (*ServiceQuotaExceededException) Error ¶
func (s *ServiceQuotaExceededException) Error() string
func (ServiceQuotaExceededException) GoString ¶
func (s ServiceQuotaExceededException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ServiceQuotaExceededException) MarshalEvent ¶
func (s *ServiceQuotaExceededException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ServiceQuotaExceededException) Message ¶
func (s *ServiceQuotaExceededException) Message() string
Message returns the exception's message.
func (*ServiceQuotaExceededException) OrigErr ¶
func (s *ServiceQuotaExceededException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ServiceQuotaExceededException) RequestID ¶
func (s *ServiceQuotaExceededException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ServiceQuotaExceededException) StatusCode ¶
func (s *ServiceQuotaExceededException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ServiceQuotaExceededException) String ¶
func (s ServiceQuotaExceededException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ServiceQuotaExceededException) UnmarshalEvent ¶
func (s *ServiceQuotaExceededException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ServiceQuotaExceededException value. This method is only used internally within the SDK's EventStream handling.
type SessionState ¶
type SessionState struct { // Contains information about the files used by code interpreter. Files []*InputFile `locationName:"files" type:"list"` // The identifier of the invocation of an action. This value must match the // invocationId returned in the InvokeAgent response for the action whose results // are provided in the returnControlInvocationResults field. For more information, // see Return control to the agent developer (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html) // and Control session context (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). InvocationId *string `locationName:"invocationId" type:"string"` // An array of configurations, each of which applies to a knowledge base attached // to the agent. KnowledgeBaseConfigurations []*KnowledgeBaseConfiguration `locationName:"knowledgeBaseConfigurations" min:"1" type:"list"` // Contains attributes that persist across a prompt and the values of those // attributes. These attributes replace the $prompt_session_attributes$ placeholder // variable in the orchestration prompt template. For more information, see // Prompt template placeholder variables (https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html). PromptSessionAttributes map[string]*string `locationName:"promptSessionAttributes" type:"map"` // Contains information about the results from the action group invocation. // For more information, see Return control to the agent developer (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html) // and Control session context (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html). // // If you include this field, the inputText field will be ignored. ReturnControlInvocationResults []*InvocationResultMember `locationName:"returnControlInvocationResults" min:"1" type:"list"` // Contains attributes that persist across a session and the values of those // attributes. SessionAttributes map[string]*string `locationName:"sessionAttributes" type:"map"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html) for an action group or pass them when making an InvokeAgent (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) 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 (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html).
func (SessionState) GoString ¶
func (s SessionState) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*SessionState) SetFiles ¶ added in v1.54.18
func (s *SessionState) SetFiles(v []*InputFile) *SessionState
SetFiles sets the Files field's value.
func (*SessionState) SetInvocationId ¶ added in v1.51.26
func (s *SessionState) SetInvocationId(v string) *SessionState
SetInvocationId sets the InvocationId field's value.
func (*SessionState) SetKnowledgeBaseConfigurations ¶ added in v1.54.18
func (s *SessionState) SetKnowledgeBaseConfigurations(v []*KnowledgeBaseConfiguration) *SessionState
SetKnowledgeBaseConfigurations sets the KnowledgeBaseConfigurations field's value.
func (*SessionState) SetPromptSessionAttributes ¶
func (s *SessionState) SetPromptSessionAttributes(v map[string]*string) *SessionState
SetPromptSessionAttributes sets the PromptSessionAttributes field's value.
func (*SessionState) SetReturnControlInvocationResults ¶ added in v1.51.26
func (s *SessionState) SetReturnControlInvocationResults(v []*InvocationResultMember) *SessionState
SetReturnControlInvocationResults sets the ReturnControlInvocationResults field's value.
func (*SessionState) SetSessionAttributes ¶
func (s *SessionState) SetSessionAttributes(v map[string]*string) *SessionState
SetSessionAttributes sets the SessionAttributes field's value.
func (SessionState) String ¶
func (s SessionState) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*SessionState) Validate ¶ added in v1.51.26
func (s *SessionState) Validate() error
Validate inspects the fields of the type to determine if they are valid.
type Span ¶
type Span struct { // Where the text with a citation ends in the generated output. End *int64 `locationName:"end" type:"integer"` // Where the text with a citation starts in the generated output. Start *int64 `locationName:"start" type:"integer"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the span field
InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the span field
func (Span) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TextInferenceConfig ¶ added in v1.52.6
type TextInferenceConfig struct { // The maximum number of tokens to generate in the output text. Do not use the // minimum of 0 or the maximum of 65536. The limit values described here are // arbitary values, for actual values consult the limits defined by your specific // model. MaxTokens *int64 `locationName:"maxTokens" type:"integer"` // A list of sequences of characters that, if generated, will cause the model // to stop generating further tokens. Do not use a minimum length of 1 or a // maximum length of 1000. The limit values described here are arbitary values, // for actual values consult the limits defined by your specific model. StopSequences []*string `locationName:"stopSequences" type:"list"` // Controls the random-ness of text generated by the language model, influencing // how much the model sticks to the most predictable next words versus exploring // more surprising options. A lower temperature value (e.g. 0.2 or 0.3) makes // model outputs more deterministic or predictable, while a higher temperature // (e.g. 0.8 or 0.9) makes the outputs more creative or unpredictable. Temperature *float64 `locationName:"temperature" type:"float"` // A probability distribution threshold which controls what the model considers // for the set of possible next tokens. The model will only consider the top // p% of the probability distribution when generating the next token. TopP *float64 `locationName:"topP" type:"float"` // contains filtered or unexported fields }
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. (https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html)
func (TextInferenceConfig) GoString ¶ added in v1.52.6
func (s TextInferenceConfig) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TextInferenceConfig) SetMaxTokens ¶ added in v1.52.6
func (s *TextInferenceConfig) SetMaxTokens(v int64) *TextInferenceConfig
SetMaxTokens sets the MaxTokens field's value.
func (*TextInferenceConfig) SetStopSequences ¶ added in v1.52.6
func (s *TextInferenceConfig) SetStopSequences(v []*string) *TextInferenceConfig
SetStopSequences sets the StopSequences field's value.
func (*TextInferenceConfig) SetTemperature ¶ added in v1.52.6
func (s *TextInferenceConfig) SetTemperature(v float64) *TextInferenceConfig
SetTemperature sets the Temperature field's value.
func (*TextInferenceConfig) SetTopP ¶ added in v1.52.6
func (s *TextInferenceConfig) SetTopP(v float64) *TextInferenceConfig
SetTopP sets the TopP field's value.
func (TextInferenceConfig) String ¶ added in v1.52.6
func (s TextInferenceConfig) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type TextResponsePart ¶
type TextResponsePart struct { // Contains information about where the text with a citation begins and ends // in the generated output. Span *Span `locationName:"span" type:"structure"` // The part of the generated text that contains a citation. Text *string `locationName:"text" type:"string"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_ResponseSyntax) – in the textResponsePart field
InvokeAgent response (https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html#API_agent-runtime_InvokeAgent_ResponseSyntax) – in the textResponsePart field
func (TextResponsePart) GoString ¶
func (s TextResponsePart) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TextResponsePart) SetSpan ¶
func (s *TextResponsePart) SetSpan(v *Span) *TextResponsePart
SetSpan sets the Span field's value.
func (*TextResponsePart) SetText ¶
func (s *TextResponsePart) SetText(v string) *TextResponsePart
SetText sets the Text field's value.
func (TextResponsePart) String ¶
func (s TextResponsePart) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
type ThrottlingException ¶
type ThrottlingException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
The number of requests exceeds the limit. Resubmit your request later.
func (*ThrottlingException) Code ¶
func (s *ThrottlingException) Code() string
Code returns the exception type name.
func (*ThrottlingException) Error ¶
func (s *ThrottlingException) Error() string
func (ThrottlingException) GoString ¶
func (s ThrottlingException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ThrottlingException) MarshalEvent ¶
func (s *ThrottlingException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ThrottlingException) Message ¶
func (s *ThrottlingException) Message() string
Message returns the exception's message.
func (*ThrottlingException) OrigErr ¶
func (s *ThrottlingException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ThrottlingException) RequestID ¶
func (s *ThrottlingException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ThrottlingException) StatusCode ¶
func (s *ThrottlingException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ThrottlingException) String ¶
func (s ThrottlingException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ThrottlingException) UnmarshalEvent ¶
func (s *ThrottlingException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ThrottlingException value. This method is only used internally within the SDK's EventStream handling.
type Trace ¶
type Trace struct { // Contains information about the failure of the interaction. // // FailureTrace is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Trace's // String and GoString methods. FailureTrace *FailureTrace `locationName:"failureTrace" type:"structure" sensitive:"true"` // The trace details for a trace defined in the Guardrail filter. // // GuardrailTrace is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Trace's // String and GoString methods. GuardrailTrace *GuardrailTrace `locationName:"guardrailTrace" type:"structure" sensitive:"true"` // Details about the orchestration step, in which the agent determines the order // in which actions are executed and which knowledge bases are retrieved. // // OrchestrationTrace is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Trace's // String and GoString methods. OrchestrationTrace *OrchestrationTrace `locationName:"orchestrationTrace" type:"structure" sensitive:"true"` // Details about the post-processing step, in which the agent shapes the response.. // // PostProcessingTrace is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Trace's // String and GoString methods. PostProcessingTrace *PostProcessingTrace `locationName:"postProcessingTrace" type:"structure" sensitive:"true"` // Details about the pre-processing step, in which the agent contextualizes // and categorizes user inputs. // // PreProcessingTrace is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by Trace's // String and GoString methods. PreProcessingTrace *PreProcessingTrace `locationName:"preProcessingTrace" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-enablement).
func (Trace) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*Trace) SetFailureTrace ¶
func (s *Trace) SetFailureTrace(v *FailureTrace) *Trace
SetFailureTrace sets the FailureTrace field's value.
func (*Trace) SetGuardrailTrace ¶ added in v1.53.6
func (s *Trace) SetGuardrailTrace(v *GuardrailTrace) *Trace
SetGuardrailTrace sets the GuardrailTrace field's value.
func (*Trace) SetOrchestrationTrace ¶
func (s *Trace) SetOrchestrationTrace(v *OrchestrationTrace) *Trace
SetOrchestrationTrace sets the OrchestrationTrace field's value.
func (*Trace) SetPostProcessingTrace ¶
func (s *Trace) SetPostProcessingTrace(v *PostProcessingTrace) *Trace
SetPostProcessingTrace sets the PostProcessingTrace field's value.
func (*Trace) SetPreProcessingTrace ¶
func (s *Trace) SetPreProcessingTrace(v *PreProcessingTrace) *Trace
SetPreProcessingTrace sets the PreProcessingTrace field's value.
type TracePart ¶
type TracePart struct { // The unique identifier of the alias of the agent. AgentAliasId *string `locationName:"agentAliasId" type:"string"` // The unique identifier of the agent. AgentId *string `locationName:"agentId" type:"string"` // The version of the agent. AgentVersion *string `locationName:"agentVersion" min:"1" type:"string"` // The unique identifier of the session with the agent. SessionId *string `locationName:"sessionId" min:"2" type:"string"` // 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 (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-enablement). // // Trace is a sensitive parameter and its value will be // replaced with "sensitive" in string returned by TracePart's // String and GoString methods. Trace *Trace `locationName:"trace" type:"structure" sensitive:"true"` // contains filtered or unexported fields }
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 (https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-enablement).
func (TracePart) GoString ¶
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TracePart) MarshalEvent ¶
func (s *TracePart) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*TracePart) SetAgentAliasId ¶
SetAgentAliasId sets the AgentAliasId field's value.
func (*TracePart) SetAgentId ¶
SetAgentId sets the AgentId field's value.
func (*TracePart) SetAgentVersion ¶ added in v1.51.26
SetAgentVersion sets the AgentVersion field's value.
func (*TracePart) SetSessionId ¶
SetSessionId sets the SessionId field's value.
func (TracePart) String ¶
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*TracePart) UnmarshalEvent ¶
func (s *TracePart) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the TracePart value. This method is only used internally within the SDK's EventStream handling.
type ValidationException ¶
type ValidationException struct { RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` Message_ *string `locationName:"message" type:"string"` // contains filtered or unexported fields }
Input validation failed. Check your request parameters and retry the request.
func (*ValidationException) Code ¶
func (s *ValidationException) Code() string
Code returns the exception type name.
func (*ValidationException) Error ¶
func (s *ValidationException) Error() string
func (ValidationException) GoString ¶
func (s ValidationException) GoString() string
GoString returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ValidationException) MarshalEvent ¶
func (s *ValidationException) MarshalEvent(pm protocol.PayloadMarshaler) (msg eventstream.Message, err error)
MarshalEvent marshals the type into an stream event value. This method should only used internally within the SDK's EventStream handling.
func (*ValidationException) Message ¶
func (s *ValidationException) Message() string
Message returns the exception's message.
func (*ValidationException) OrigErr ¶
func (s *ValidationException) OrigErr() error
OrigErr always returns nil, satisfies awserr.Error interface.
func (*ValidationException) RequestID ¶
func (s *ValidationException) RequestID() string
RequestID returns the service's response RequestID for request.
func (*ValidationException) StatusCode ¶
func (s *ValidationException) StatusCode() int
Status code returns the HTTP status code for the request's response error.
func (ValidationException) String ¶
func (s ValidationException) String() string
String returns the string representation.
API parameter values that are decorated as "sensitive" in the API will not be included in the string output. The member name will be present, but the value will be replaced with "sensitive".
func (*ValidationException) UnmarshalEvent ¶
func (s *ValidationException) UnmarshalEvent( payloadUnmarshaler protocol.PayloadUnmarshaler, msg eventstream.Message, ) error
UnmarshalEvent unmarshals the EventStream Message into the ValidationException value. This method is only used internally within the SDK's EventStream handling.
Directories ¶
Path | Synopsis |
---|---|
Package bedrockagentruntimeiface provides an interface to enable mocking the Agents for Amazon Bedrock Runtime service client for testing your code.
|
Package bedrockagentruntimeiface provides an interface to enable mocking the Agents for Amazon Bedrock Runtime service client for testing your code. |