Skip to content

Feature: Billing and usage statistics#46

Merged
hundredwz merged 1 commit intobaidu-baige:mainfrom
hundredwz:feature/llm_cost_for_ml_agent
Feb 11, 2026
Merged

Feature: Billing and usage statistics#46
hundredwz merged 1 commit intobaidu-baige:mainfrom
hundredwz:feature/llm_cost_for_ml_agent

Conversation

@hundredwz
Copy link
Copy Markdown
Collaborator

What problem does this PR solve?

Issue Number: resolve #45

Problem Summary:
ML Agent lacks token usage tracking and billing functionality. Unlike Math Agent which uses ReActAgent throughout, ML Agent uses EvoCoder for code generation which bypasses the framework's built-in token tracking.

What is changed and the side effects?

Changed:

  • Add token usage tracking to EvoCoder (accumulate tokens from LLM calls)
  • Propagate token statistics through MLExecutorAgent, MLPlannerAgent, and MLSummaryAgent
  • Add token_usage parameter to eda_tool to capture EDA-related token consumption

Side effects:

  • Performance effects: None
  • Breaking backward compatibility: None (all new fields have default values)

Check List:

@hundredwz hundredwz merged commit c10a71f into baidu-baige:main Feb 11, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Billing and usage statistics

3 participants