Class AgentWithTracingExample

java.lang.Object
ai.acolite.agentsdk.examples.AgentWithTracingExample

public class AgentWithTracingExample extends Object
AgentWithTracingExample

Demonstrates tracing with real agent execution and handoff. Shows how traces and spans wrap around agent operations.

This example: - Creates two agents (Triage -> Math Specialist) - Manually wraps execution with traces/spans - Uses ConsoleTraceProcessor to print trace output - Requires OPENAI_API_KEY to run

Usage: OPENAI_API_KEY=sk-... java ai.acolite.agentsdk.examples.AgentWithTracingExample

  • Constructor Details

    • AgentWithTracingExample

      public AgentWithTracingExample()
  • Method Details

    • main

      public static void main(String[] args)