pyagentic-core 2.3.0a2__tar.gz → 2.3.0a3__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.
- {pyagentic_core-2.3.0a2/pyagentic_core.egg-info → pyagentic_core-2.3.0a3}/PKG-INFO +1 -1
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_agent/_agent.py +6 -2
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/models/llm.py +3 -4
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3/pyagentic_core.egg-info}/PKG-INFO +1 -1
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyproject.toml +1 -1
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/LICENSE +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/README.md +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/__init__.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/__init__.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_agent/__init__.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_agent/_agent_linking.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_agent/_agent_state.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_exceptions.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_info.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_metaclasses.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_ref.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_spec.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_state.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_tool.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_base/_validation.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_utils/_image.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_utils/_typing.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/_utils/_warnings.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/__init__.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/_anthropic.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/_gemini.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/_mock.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/_openai.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/_openaiv1.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/llm/_provider.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/logging.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/models/response.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/models/tracing.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/policies/__init__.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/policies/_events.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/policies/_policy.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/tracing/__init__.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/tracing/_basic.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/tracing/_langfuse.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/tracing/_tracer.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic/updates.py +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic_core.egg-info/SOURCES.txt +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic_core.egg-info/dependency_links.txt +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic_core.egg-info/requires.txt +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic_core.egg-info/top_level.txt +0 -0
- {pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/setup.cfg +0 -0
|
@@ -437,7 +437,9 @@ class BaseAgent(metaclass=AgentMeta):
|
|
|
437
437
|
stringified_result = f"[Image returned by {tool_call.name}]"
|
|
438
438
|
# Add tool result message
|
|
439
439
|
self.state._messages.append(
|
|
440
|
-
self.provider.to_tool_call_result_message(
|
|
440
|
+
self.provider.to_tool_call_result_message(
|
|
441
|
+
result=stringified_result, id_=tool_call.id
|
|
442
|
+
)
|
|
441
443
|
)
|
|
442
444
|
# Add the image as a user message so the LLM can see it
|
|
443
445
|
self.state._messages.append(
|
|
@@ -451,7 +453,9 @@ class BaseAgent(metaclass=AgentMeta):
|
|
|
451
453
|
)
|
|
452
454
|
# Add tool result to conversation history for LLM
|
|
453
455
|
self.state._messages.append(
|
|
454
|
-
self.provider.to_tool_call_result_message(
|
|
456
|
+
self.provider.to_tool_call_result_message(
|
|
457
|
+
result=stringified_result, id_=tool_call.id
|
|
458
|
+
)
|
|
455
459
|
)
|
|
456
460
|
|
|
457
461
|
if self.phases:
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
from typing import Any, List, Optional
|
|
1
|
+
from typing import Any, List, Optional
|
|
2
2
|
from pydantic import BaseModel, ConfigDict
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
from PIL.Image import Image
|
|
4
|
+
from PIL.Image import Image
|
|
6
5
|
|
|
7
6
|
|
|
8
7
|
class Message(BaseModel):
|
|
@@ -18,7 +17,7 @@ class Message(BaseModel):
|
|
|
18
17
|
type: Optional[str] = None
|
|
19
18
|
role: Optional[str] = None
|
|
20
19
|
content: Optional[str] = None
|
|
21
|
-
image: Optional[
|
|
20
|
+
image: Optional[Image] = None
|
|
22
21
|
|
|
23
22
|
def to_dict(self, exclude_none: bool = True):
|
|
24
23
|
"""
|
|
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
|
{pyagentic_core-2.3.0a2 → pyagentic_core-2.3.0a3}/pyagentic_core.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|