agentx-python 0.5.1__tar.gz → 0.5.2__tar.gz

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.
Files changed (46) hide show
  1. {agentx_python-0.5.1/agentx_python.egg-info → agentx_python-0.5.2}/PKG-INFO +1 -1
  2. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/google_adk.py +14 -12
  3. agentx_python-0.5.2/agentx/version.py +1 -0
  4. {agentx_python-0.5.1 → agentx_python-0.5.2/agentx_python.egg-info}/PKG-INFO +1 -1
  5. agentx_python-0.5.1/agentx/version.py +0 -1
  6. {agentx_python-0.5.1 → agentx_python-0.5.2}/LICENSE +0 -0
  7. {agentx_python-0.5.1 → agentx_python-0.5.2}/README.md +0 -0
  8. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/__init__.py +0 -0
  9. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/agentx.py +0 -0
  10. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/__init__.py +0 -0
  11. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/_term.py +0 -0
  12. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/__init__.py +0 -0
  13. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/http_endpoint.py +0 -0
  14. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/precomputed.py +0 -0
  15. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/raw.py +0 -0
  16. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/client.py +0 -0
  17. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/datasets.py +0 -0
  18. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/models.py +0 -0
  19. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/redaction.py +0 -0
  20. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/reporting.py +0 -0
  21. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/results.py +0 -0
  22. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/runner.py +0 -0
  23. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/tracing.py +0 -0
  24. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/exceptions.py +0 -0
  25. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/__init__.py +0 -0
  26. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/anthropic.py +0 -0
  27. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/crewai.py +0 -0
  28. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/google_genai.py +0 -0
  29. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/langchain.py +0 -0
  30. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/openai_agents.py +0 -0
  31. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/__init__.py +0 -0
  32. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/agent.py +0 -0
  33. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/conversation.py +0 -0
  34. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/workforce.py +0 -0
  35. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/__init__.py +0 -0
  36. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/ci_types.py +0 -0
  37. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/ingest_client.py +0 -0
  38. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/tracer.py +0 -0
  39. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/util.py +0 -0
  40. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/SOURCES.txt +0 -0
  41. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/dependency_links.txt +0 -0
  42. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/requires.txt +0 -0
  43. {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/top_level.txt +0 -0
  44. {agentx_python-0.5.1 → agentx_python-0.5.2}/setup.cfg +0 -0
  45. {agentx_python-0.5.1 → agentx_python-0.5.2}/setup.py +0 -0
  46. {agentx_python-0.5.1 → agentx_python-0.5.2}/tests/test_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentx-python
3
- Version: 0.5.1
3
+ Version: 0.5.2
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
@@ -75,6 +75,9 @@ class AgentXADKPlugin(BasePlugin):
75
75
  self._session_id = session_id
76
76
  # invocation_id → accumulated run state
77
77
  self._runs: Dict[str, Dict[str, Any]] = {}
78
+ # invocation_id → pre-buffered user input text
79
+ # (on_user_message_callback fires *before* before_run_callback)
80
+ self._pending_inputs: Dict[str, str] = {}
78
81
  # id(tool_context) → start time float
79
82
  self._tool_starts: Dict[int, float] = {}
80
83
 
@@ -82,30 +85,29 @@ class AgentXADKPlugin(BasePlugin):
82
85
  # Run lifecycle
83
86
  # ------------------------------------------------------------------
84
87
 
88
+ async def on_user_message_callback(
89
+ self, *, invocation_context: Any, user_message: Any
90
+ ) -> None:
91
+ # Called *before* before_run_callback, so self._runs doesn't exist yet.
92
+ # Buffer the input and consume it in before_run_callback.
93
+ inv_id = invocation_context.invocation_id
94
+ text = _content_to_text(user_message)
95
+ if text:
96
+ self._pending_inputs[inv_id] = text
97
+
85
98
  async def before_run_callback(self, *, invocation_context: Any) -> None:
86
99
  inv_id = invocation_context.invocation_id
87
100
  agent_name = getattr(invocation_context.agent, "name", None) or self._agent_name
88
101
  self._runs[inv_id] = {
89
102
  "start": time.time(),
90
103
  "name": agent_name,
91
- "input": None,
104
+ "input": self._pending_inputs.pop(inv_id, None),
92
105
  "output": None,
93
106
  "model": None,
94
107
  "tool_calls": [],
95
108
  "error": None,
96
109
  }
97
110
 
98
- async def on_user_message_callback(
99
- self, *, invocation_context: Any, user_message: Any
100
- ) -> None:
101
- inv_id = invocation_context.invocation_id
102
- state = self._runs.get(inv_id)
103
- if state is None:
104
- return
105
- text = _content_to_text(user_message)
106
- if text and state["input"] is None:
107
- state["input"] = text
108
-
109
111
  async def after_run_callback(self, *, invocation_context: Any) -> None:
110
112
  inv_id = invocation_context.invocation_id
111
113
  state = self._runs.pop(inv_id, None)
@@ -0,0 +1 @@
1
+ VERSION = "0.5.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentx-python
3
- Version: 0.5.1
3
+ Version: 0.5.2
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
@@ -1 +0,0 @@
1
- VERSION = "0.5.1"
File without changes
File without changes
File without changes
File without changes