11import { parseJsonRpcResponse } from '../../lib/utils/json-rpc' ;
2+ import { PACKAGE_VERSION } from '../constants' ;
23import { getCredentialProvider } from './account' ;
34import { parseAguiSSEStream } from './agui-parser' ;
45import { serviceEndpoint } from './partition' ;
@@ -20,6 +21,7 @@ function createAgentCoreClient(region: string, headers?: Record<string, string>)
2021 const client = new BedrockAgentCoreClient ( {
2122 region,
2223 credentials : getCredentialProvider ( ) ,
24+ customUserAgent : [ [ 'agentcore-cli' , PACKAGE_VERSION ] ] ,
2325 } ) ;
2426
2527 if ( headers && Object . keys ( headers ) . length > 0 ) {
@@ -464,6 +466,7 @@ export async function evaluate(options: EvaluateOptions): Promise<EvaluateResult
464466 const client = new BedrockAgentCoreClient ( {
465467 region : options . region ,
466468 credentials : getCredentialProvider ( ) ,
469+ customUserAgent : [ [ 'agentcore-cli' , PACKAGE_VERSION ] ] ,
467470 } ) ;
468471
469472 const evaluationTarget = options . targetSpanIds
@@ -1057,6 +1060,7 @@ export async function stopRuntimeSession(options: StopRuntimeSessionOptions): Pr
10571060 const client = new BedrockAgentCoreClient ( {
10581061 region : options . region ,
10591062 credentials : getCredentialProvider ( ) ,
1063+ customUserAgent : [ [ 'agentcore-cli' , PACKAGE_VERSION ] ] ,
10601064 } ) ;
10611065
10621066 const command = new StopRuntimeSessionCommand ( {
0 commit comments