We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67317b4 commit dfd2ba1Copy full SHA for dfd2ba1
1 file changed
server/server.py
@@ -418,6 +418,9 @@ def handle_investor_chat_request(
418
protocol_registry: ProtocolRegistry,
419
) -> AgentMessage:
420
"""Handle requests for the investor agent."""
421
+ # Emit metric for investor agent usage
422
+ statsd.increment('agent.usage', tags=['agent_type:investor'])
423
+
424
# Build investor agent system prompt
425
investor_system_prompt = get_investor_agent_prompt(
426
tokens=portfolio.holdings,
@@ -565,6 +568,8 @@ def handle_analytics_chat_request(
565
568
portfolio: Portfolio,
566
569
agent: CompiledGraph,
567
570
571
+ # Emit metric for analytics agent usage
572
+ statsd.increment('agent.usage', tags=['agent_type:analytics'])
573
574
# Build analytics agent system prompt
575
analytics_system_prompt = get_analytics_prompt(
0 commit comments