Slide 7
Slide 7 text
©Mitsubishi Electric Corporation
B e d r o c k A g e n t s の レ ス ポ ン ス 解 析 ~ 1 ~
• InvokeAgent()のレスポンスからBedrock Agentsの動作を確認
7
{
"accessDeniedException": {
},
"badGatewayException": {
},
"chunk": {
…
},
……..
"trace": {
},
…
}
参考: https://docs.aws.amazon.com/ja_jp/bedrock/latest/userguide/trace-events.html
InvokeAgentのレスポンスボディ
TracePartオブジェクト
Traceオブジェクトの
OrchestrationTrace
{
"agentId": "string",
"agentName": "string",
"collaboratorName": "string",
"agentAliasId": "string",
"sessionId": "string",
"agentVersion": "string",
"trace": {
},
"callerChain": [{
"agentAliasArn": "agent alias arn"
}]
}
{
"modelInvocationInput": { // … },
"modelInvocationOutput": {
"metadata": {
"usage": {
"inputToken":: int,
"outputToken":: int
},
"rawResponse": {
"content": “….“
},
"rationale": { ... },
"invocationInput": { ... },
"observation": { ... }
}