Core package
Framework-specific packages
Install only what your agent needs.These are plain framework packages; evaluating an agent doesn’t need any
agentx-python[extra] install. Those extras are only for
tracing auto-instrumentation (AgentXCallbackHandler,
patch_anthropic_client, etc.), which evaluation examples don’t use.For Google, install
google-genai, not the deprecated google-generativeai
package.Environment
base_url
or api_key won’t error until first use), and trace delivery is fire-and-forget, so a
misconfigured client would otherwise only surface as a one-time warning in logs.
client.ping() makes one cheap authenticated call and raises AgentXConnectionError (bad
URL) or AgentXAuthError (rejected key) with an actionable message - call it once at startup
of anything long-running.
See Python SDK Overview for the full initialization options, including self-hosted base_url overrides.
