feat: Enhance token usage computation with improved message handling and context management

This commit is contained in:
Marco Beretta 2025-12-15 17:56:50 +01:00
parent be606dda6f
commit 5d71b049cb
No known key found for this signature in database
GPG key ID: D918033D8E74CC11
3 changed files with 27 additions and 7 deletions

View file

@ -315,6 +315,8 @@ class AgentClient extends BaseClient {
Object.assign(
{
endpoint: this.options.endpoint,
endpointType: this.options.endpointType,
model: this.options.agent?.model_parameters?.model,
agent_id: this.options.agent.id,
modelLabel: this.options.modelLabel,
maxContextTokens: this.options.maxContextTokens,