agentx-python 0.6.3__py3-none-any.whl → 0.6.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
agentx/version.py CHANGED
@@ -1 +1 @@
1
- VERSION = "0.6.3"
1
+ VERSION = "0.6.4"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentx-python
3
- Version: 0.6.3
3
+ Version: 0.6.4
4
4
  Summary: Official Python SDK for AgentX (https://www.agentx.so/)
5
5
  Home-page: https://github.com/AgentX-ai/AgentX-python
6
6
  Author: Robin Wang and AgentX Team
@@ -49,8 +49,12 @@ Dynamic: summary
49
49
  ![Logo](https://agentx-resources.s3.us-west-1.amazonaws.com/AgentX-logo-387x60.png)
50
50
 
51
51
  [![PyPI version](https://img.shields.io/pypi/v/agentx-python)](https://pypi.org/project/agentx-python/)
52
+ [![Python versions](https://img.shields.io/pypi/pyversions/agentx-python)](https://pypi.org/project/agentx-python/)
53
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
52
54
 
53
- The official Python SDK for **[AgentX](https://www.agentx.so/)** — build, chat with, and orchestrate AI agents in a few lines of code.
55
+ The official Python SDK for **[AgentX](https://app.agentx.so/)** — build, chat with, orchestrate, and trace AI agents in a few lines of code.
56
+
57
+ Also see [SDK Developer Docs](https://developers.agentx.so), [API Reference Docs](https://docs.agentx.so/reference)
54
58
 
55
59
  ---
56
60
 
@@ -64,8 +68,9 @@ The official Python SDK for **[AgentX](https://www.agentx.so/)** — build, chat
64
68
  - [List agents](#list-agents)
65
69
  - [Start a conversation](#start-a-conversation)
66
70
  - [Chat (streaming and non-streaming)](#chat-streaming-and-non-streaming)
67
- - [Workforce (multi-agent orchestration)](#workforce-multi-agent-orchestration)
68
- - [Agent Evaluations](#custom-agent-evaluations) — LLM-as-a-judge, cosine / Jaccard similarity
71
+ - [Workforce (multi-agent orchestration)](#workforce-multi-agent-orchestration) — teams of agents with a designated manager
72
+ - [Production tracing](#production-tracing) — record live agent runs from any framework
73
+ - [Custom agent evaluations](#custom-agent-evaluations) — LLM-as-a-judge, cosine / Jaccard similarity
69
74
  - [Links](#links)
70
75
 
71
76
  ---
@@ -78,6 +83,7 @@ The official Python SDK for **[AgentX](https://www.agentx.so/)** — build, chat
78
83
  - **Batteries included** — voice (ASR/TTS), image generation, document/CSV/Excel/OCR, RAG with built-in re-ranking.
79
84
  - **MCP support** — connect any Model Context Protocol server.
80
85
  - **Multi-agent orchestration** — workforces of agents with a designated manager, across LLM vendors.
86
+ - **Production tracing** — one decorator or context manager records every agent run (input, output, latency, tool calls, token usage) into your workspace, for any framework.
81
87
  - **Agent Evaluations** — score any agent (LangChain, CrewAI, OpenAI, Anthropic, HTTP, …) with LLM-as-a-judge ratings plus optional cosine and Jaccard similarity metrics.
82
88
  - **A2A** — Each agent can be published with agent-to-agent protocol compatible.
83
89
 
@@ -187,6 +193,58 @@ for chunk in workforce.chat_stream(conversation.id, "How can you help me with th
187
193
 
188
194
  ---
189
195
 
196
+ ## Production tracing
197
+
198
+ Record live agent runs into your workspace with a single decorator or context manager — no changes to your agent's logic. Traces appear in the **Live Traces** tab and can be evaluated against your test datasets with [`tracer.evaluate_trace()`](TRACING.md#tracerevaluate_trace).
199
+
200
+ ```python
201
+ from agentx import AgentX
202
+
203
+ client = AgentX.from_env()
204
+ tracer = client.tracer
205
+
206
+ @tracer.trace("customer-support-agent", framework="langchain", model="gpt-4o")
207
+ def handle_query(query: str) -> str:
208
+ return chain.invoke(query)
209
+
210
+ # Every call is automatically traced: input, output, latency, tool calls, token usage
211
+ handle_query("How do I reset my password?")
212
+ tracer.flush(timeout=10) # ensure delivery before the process exits
213
+ ```
214
+
215
+ Prefer full control over what gets captured? Use the context manager instead:
216
+
217
+ ```python
218
+ with tracer.trace("rag-agent", framework="langchain") as span:
219
+ span.input = {"query": query, "user_id": user_id}
220
+
221
+ kb_result = search_knowledge_base(query)
222
+ span.add_tool_call("search_knowledge_base", input=query, output=kb_result, latency_ms=190)
223
+
224
+ span.output = llm.invoke(f"Context: {kb_result}\n\nQuery: {query}")
225
+ ```
226
+
227
+ ### Framework integrations
228
+
229
+ Each integration auto-captures LLM calls, tool calls, and token usage — install the matching extra:
230
+
231
+ | Framework | Install | Integration |
232
+ | --------------------- | -------------------------------------------- | ------------------------ |
233
+ | LangChain | `pip install "agentx-python[langchain]"` | `AgentXCallbackHandler` |
234
+ | CrewAI | `pip install "agentx-python[crewai]"` | `AgentXCrewObserver` |
235
+ | OpenAI Agents SDK | `pip install "agentx-python[openai-agents]"` | `AgentXTracingProcessor` |
236
+ | Anthropic | `pip install "agentx-python[anthropic]"` | `patch_anthropic_client` |
237
+ | Google ADK | `pip install "agentx-python[google-adk]"` | `AgentXADKPlugin` |
238
+ | Google GenAI (Gemini) | `pip install "agentx-python[google-genai]"` | `patch_genai_client` |
239
+
240
+ Or plain Python — wrap any function with `@tracer.trace(...)` and it just works, no framework required.
241
+
242
+ Running specialist agents in parallel with a `ThreadPoolExecutor`? Wrap each worker body in `tracer.use_span(span)` so their steps land on the parent trace instead of becoming independent traces — see [TRACING.md](TRACING.md) for the full pattern.
243
+
244
+ See **[TRACING.md](TRACING.md)** for the complete guide — session grouping, error handling, async support, and the full API reference.
245
+
246
+ ---
247
+
190
248
  ## Custom agent evaluations
191
249
 
192
250
  Evaluate **any** AI agent — LangChain, CrewAI, AutoGen, LlamaIndex, OpenAI, Anthropic, HTTP endpoints, or plain Python — using AgentX as the scoring and reporting backend. Includes optional **cosine** and **Jaccard** similarity metrics alongside LLM-graded ratings.
@@ -214,4 +272,5 @@ See **[EVALUATIONS.md](EVALUATIONS.md)** for the full guide — dataset builder,
214
272
  - **Dashboard** — [app.agentx.so](https://app.agentx.so)
215
273
  - **Website** — [agentx.so](https://www.agentx.so/)
216
274
  - **PyPI** — [agentx-python](https://pypi.org/project/agentx-python/)
275
+ - **Tracing docs** — [TRACING.md](TRACING.md)
217
276
  - **Evaluations docs** — [EVALUATIONS.md](EVALUATIONS.md)
@@ -2,7 +2,7 @@ agentx/__init__.py,sha256=4iMiGLNU4S-I-WyX0Z7l0BFUY_krVJ3seMQPqyO-ReA,602
2
2
  agentx/agentx.py,sha256=tw3CUnkvTM1eopoO7u8TgKnAz9t0HNSxrVcjIJsytAg,3469
3
3
  agentx/exceptions.py,sha256=TKooc1_pQ2P_4DqpLfZx_ap-6cfrjFLW8JS2qaGx_1M,1237
4
4
  agentx/util.py,sha256=yOV3VVdc0KUbw5pEkSRiO2lZzEtL1vOsnB_f5tFk948,665
5
- agentx/version.py,sha256=EcerQsxCz_DDCHON8gq7lz-bXrs9TkUB4J1JloI4lpk,18
5
+ agentx/version.py,sha256=eAdLItwuiogcBMbAR5LDEVkfVWaKddGiaKE1H86EnH4,18
6
6
  agentx/evaluations/__init__.py,sha256=OmdCHiBO3Qcsck0UkOyVqSvfRs6nXbSi-2FXzyRfsog,89
7
7
  agentx/evaluations/_term.py,sha256=S4blZgH66wHvkt2hR29h8JE5xnakBeD7dlZdUW9Wfoo,2065
8
8
  agentx/evaluations/client.py,sha256=3mC0uSBRk9uO4F3a7kIMM_UUsyypF99_97E5MSpYFzM,7736
@@ -33,8 +33,8 @@ agentx/tracing/__init__.py,sha256=l2mIRILE-wWrCD0fekgrIOQUEvtDObzdrkgpQUtXroU,40
33
33
  agentx/tracing/ci_types.py,sha256=zFVcZGvc1qbVDdOlEPQ1i5R6terqJHxCzFF4ZjouxxI,1423
34
34
  agentx/tracing/ingest_client.py,sha256=8aLabvWecgZsn0pkajZkI1it2TOk5boP0kC3o6TO52o,11487
35
35
  agentx/tracing/tracer.py,sha256=3KV6WjR_D_uTbvakukVNtuwGEElvslPp-aqlSIPp5OY,32534
36
- agentx_python-0.6.3.dist-info/licenses/LICENSE,sha256=6ZbiPNFmv3xBb44LGhAa3PZYK0ROAztsd5LRFZDlGFE,1074
37
- agentx_python-0.6.3.dist-info/METADATA,sha256=2iaT4t0PeqR8yHPV_gQGBUUjlA9r04Dd_Odi7kk6p9o,6901
38
- agentx_python-0.6.3.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
39
- agentx_python-0.6.3.dist-info/top_level.txt,sha256=s-q-HB9Gb_QdrZNacSeQyF_c25gQooMy7DlxzgLOHPk,7
40
- agentx_python-0.6.3.dist-info/RECORD,,
36
+ agentx_python-0.6.4.dist-info/licenses/LICENSE,sha256=6ZbiPNFmv3xBb44LGhAa3PZYK0ROAztsd5LRFZDlGFE,1074
37
+ agentx_python-0.6.4.dist-info/METADATA,sha256=xntWxumHi-pkmuf20MAEQ5Unuse2j_WIdVfnkw3pOTw,10188
38
+ agentx_python-0.6.4.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
39
+ agentx_python-0.6.4.dist-info/top_level.txt,sha256=s-q-HB9Gb_QdrZNacSeQyF_c25gQooMy7DlxzgLOHPk,7
40
+ agentx_python-0.6.4.dist-info/RECORD,,