AgentScope (tracing)
AgentScope (tracing)
AgentScope is a Python framework for building agent applications with model abstractions, messages, and toolkits. Respan patches AgentScope agent, chat model, and toolkit surfaces so agent replies, model calls, tool calls, streaming output, and failures appear as Respan traces.
This tracing setup uses your model provider credentials directly. To route model calls through Respan instead, use the AgentScope gateway setup.
Set up Respan
Create an account at platform.respan.ai and grab an API key.
Run npx @respan/cli setup to set up with your coding agent.
Use Respan Gateway
See AgentScope gateway setup to route model calls through the Respan gateway.
Example projects
Setup
Configuration
What gets traced
Attributes
Set defaults at initialization. These apply to every span emitted by the AgentScope instrumentor.
Use targeted AgentScopeInstrumentor(model=model) instances for custom or externally defined AgentScope-compatible models that are not reachable through the default AgentScope module patching path.