goose-py 0.5.0__tar.gz → 0.5.1__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.
- {goose_py-0.5.0 → goose_py-0.5.1}/PKG-INFO +1 -1
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/agent.py +2 -3
- {goose_py-0.5.0 → goose_py-0.5.1}/pyproject.toml +1 -1
- {goose_py-0.5.0 → goose_py-0.5.1}/README.md +0 -0
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/__init__.py +0 -0
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/errors.py +0 -0
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/flow.py +0 -0
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/py.typed +0 -0
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/result.py +0 -0
- {goose_py-0.5.0 → goose_py-0.5.1}/goose/store.py +0 -0
@@ -1,4 +1,3 @@
|
|
1
|
-
import base64
|
2
1
|
import json
|
3
2
|
import logging
|
4
3
|
from datetime import datetime
|
@@ -59,12 +58,12 @@ class TextMessagePart(BaseModel):
|
|
59
58
|
|
60
59
|
class MediaMessagePart(BaseModel):
|
61
60
|
content_type: UserMediaContentType
|
62
|
-
content:
|
61
|
+
content: str
|
63
62
|
|
64
63
|
def render(self) -> LLMMediaMessagePart:
|
65
64
|
return {
|
66
65
|
"type": "image_url",
|
67
|
-
"image_url": f"data:{self.content_type};base64,{
|
66
|
+
"image_url": f"data:{self.content_type};base64,{self.content}",
|
68
67
|
}
|
69
68
|
|
70
69
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|