Skip to content

Commit dfd2ba1

Browse files
Adam BaloghAdam Balogh
authored andcommitted
agent
1 parent 67317b4 commit dfd2ba1

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

server/server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ def handle_investor_chat_request(
418418
protocol_registry: ProtocolRegistry,
419419
) -> AgentMessage:
420420
"""Handle requests for the investor agent."""
421+
# Emit metric for investor agent usage
422+
statsd.increment('agent.usage', tags=['agent_type:investor'])
423+
421424
# Build investor agent system prompt
422425
investor_system_prompt = get_investor_agent_prompt(
423426
tokens=portfolio.holdings,
@@ -565,6 +568,8 @@ def handle_analytics_chat_request(
565568
portfolio: Portfolio,
566569
agent: CompiledGraph,
567570
) -> AgentMessage:
571+
# Emit metric for analytics agent usage
572+
statsd.increment('agent.usage', tags=['agent_type:analytics'])
568573

569574
# Build analytics agent system prompt
570575
analytics_system_prompt = get_analytics_prompt(

0 commit comments

Comments
 (0)