|
1 | 1 | import { parseJsonRpcResponse } from '../../lib/utils/json-rpc'; |
| 2 | +import { PACKAGE_VERSION } from '../constants'; |
2 | 3 | import { getCredentialProvider } from './account'; |
3 | 4 | import { parseAguiSSEStream } from './agui-parser'; |
4 | 5 | import { serviceEndpoint } from './partition'; |
@@ -28,6 +29,7 @@ function createAgentCoreClient(region: string, headers?: Record<string, string>) |
28 | 29 | const client = new BedrockAgentCoreClient({ |
29 | 30 | region, |
30 | 31 | credentials: getCredentialProvider(), |
| 32 | + customUserAgent: [['agentcore-cli', PACKAGE_VERSION]], |
31 | 33 | ...(endpoint && { endpoint }), |
32 | 34 | }); |
33 | 35 |
|
@@ -473,6 +475,7 @@ export async function evaluate(options: EvaluateOptions): Promise<EvaluateResult |
473 | 475 | const client = new BedrockAgentCoreClient({ |
474 | 476 | region: options.region, |
475 | 477 | credentials: getCredentialProvider(), |
| 478 | + customUserAgent: [['agentcore-cli', PACKAGE_VERSION]], |
476 | 479 | }); |
477 | 480 |
|
478 | 481 | const evaluationTarget = options.targetSpanIds |
@@ -1066,6 +1069,7 @@ export async function stopRuntimeSession(options: StopRuntimeSessionOptions): Pr |
1066 | 1069 | const client = new BedrockAgentCoreClient({ |
1067 | 1070 | region: options.region, |
1068 | 1071 | credentials: getCredentialProvider(), |
| 1072 | + customUserAgent: [['agentcore-cli', PACKAGE_VERSION]], |
1069 | 1073 | }); |
1070 | 1074 |
|
1071 | 1075 | const command = new StopRuntimeSessionCommand({ |
|
0 commit comments