Package com.ants.platform.examples
Class AgentTracingExample
java.lang.Object
com.ants.platform.examples.AgentTracingExample
Realistic nested-agent example used to verify observability parity end-to-end.
Produces a five-observation trace:
research-agent (agent, root)
+- draft-answer (generation; model + token usage -> server cost)
+- web-search (tool)
+- kb-retrieval (retriever)
+- pricing-service (span; a dependent-service call)
Run with the platform credentials in the environment and no baseUrl override
(so the default https://api.agenticants.ai host is exercised):
ANTS_PLATFORM_PUBLIC_KEY=pk-ap-... ANTS_PLATFORM_SECRET_KEY=sk-ap-... \
java -cp ... com.ants.platform.examples.AgentTracingExample
It prints TRACE_ID=<id> so the trace can be fetched back for assertions.-
Method Summary
-
Method Details
-
main
- Throws:
Exception
-