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.
- {agentx_python-0.5.1/agentx_python.egg-info → agentx_python-0.5.2}/PKG-INFO +1 -1
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/google_adk.py +14 -12
- agentx_python-0.5.2/agentx/version.py +1 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2/agentx_python.egg-info}/PKG-INFO +1 -1
- agentx_python-0.5.1/agentx/version.py +0 -1
- {agentx_python-0.5.1 → agentx_python-0.5.2}/LICENSE +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/README.md +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/__init__.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/agentx.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/__init__.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/_term.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/__init__.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/http_endpoint.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/precomputed.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/adapters/raw.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/client.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/datasets.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/models.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/redaction.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/reporting.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/results.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/runner.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/evaluations/tracing.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/exceptions.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/__init__.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/anthropic.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/crewai.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/google_genai.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/langchain.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/integrations/openai_agents.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/__init__.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/agent.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/conversation.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/resources/workforce.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/__init__.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/ci_types.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/ingest_client.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/tracing/tracer.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx/util.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/SOURCES.txt +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/dependency_links.txt +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/requires.txt +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/agentx_python.egg-info/top_level.txt +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/setup.cfg +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/setup.py +0 -0
- {agentx_python-0.5.1 → agentx_python-0.5.2}/tests/test_integration.py +0 -0
|
@@ -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 +0,0 @@
|
|
|
1
|
-
VERSION = "0.5.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|