Package ai.acolite.agentsdk.examples
Class AgentWithTracingExample
java.lang.Object
ai.acolite.agentsdk.examples.AgentWithTracingExample
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
AgentWithTracingExample
public AgentWithTracingExample()
-
-
Method Details
-
main
-