latitude-sdk 0.1.0b1__py3-none-any.whl → 0.1.0b2__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.
- latitude_sdk/sdk/latitude.py +1 -1
- latitude_sdk/sdk/types.py +2 -2
- {latitude_sdk-0.1.0b1.dist-info → latitude_sdk-0.1.0b2.dist-info}/METADATA +2 -2
- {latitude_sdk-0.1.0b1.dist-info → latitude_sdk-0.1.0b2.dist-info}/RECORD +5 -5
- {latitude_sdk-0.1.0b1.dist-info → latitude_sdk-0.1.0b2.dist-info}/WHEEL +0 -0
latitude_sdk/sdk/latitude.py
CHANGED
@@ -46,7 +46,7 @@ class Latitude:
|
|
46
46
|
logs: Logs
|
47
47
|
evaluations: Evaluations
|
48
48
|
|
49
|
-
def __init__(self, api_key: str, options: LatitudeOptions
|
49
|
+
def __init__(self, api_key: str, options: LatitudeOptions):
|
50
50
|
options.internal = options.internal or DEFAULT_INTERNAL_OPTIONS
|
51
51
|
options.internal = InternalOptions(**{**dict(DEFAULT_INTERNAL_OPTIONS), **dict(options.internal)})
|
52
52
|
options = LatitudeOptions(**{**dict(DEFAULT_LATITUDE_OPTIONS), **dict(options)})
|
latitude_sdk/sdk/types.py
CHANGED
@@ -91,7 +91,7 @@ class SystemMessage(Model):
|
|
91
91
|
|
92
92
|
class UserMessage(Model):
|
93
93
|
role: MessageRole = MessageRole.User
|
94
|
-
content: Union[str, List[TextContent
|
94
|
+
content: Union[str, List[Union[TextContent, ImageContent, FileContent]]]
|
95
95
|
name: Optional[str] = None
|
96
96
|
|
97
97
|
|
@@ -103,7 +103,7 @@ class ToolCall(Model):
|
|
103
103
|
|
104
104
|
class AssistantMessage(Model):
|
105
105
|
role: MessageRole = MessageRole.Assistant
|
106
|
-
content: Union[str, List[TextContent
|
106
|
+
content: Union[str, List[Union[TextContent, ToolCallContent]]]
|
107
107
|
tool_calls: Optional[List[ToolCall]] = Field(None, alias=str("toolCalls"))
|
108
108
|
|
109
109
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: latitude-sdk
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.0b2
|
4
4
|
Summary: Latitude SDK for Python
|
5
5
|
Project-URL: repository, https://github.com/latitude-dev/latitude-llm/tree/main/packages/sdks/python
|
6
6
|
Project-URL: homepage, https://github.com/latitude-dev/latitude-llm/tree/main/packages/sdks/python#readme
|
@@ -44,7 +44,7 @@ await sdk.prompts.run("joke-teller", RunPromptOptions(
|
|
44
44
|
))
|
45
45
|
```
|
46
46
|
|
47
|
-
Find more examples
|
47
|
+
Find more [examples](https://github.com/latitude-dev/latitude-llm/tree/main/examples/sdks/python).
|
48
48
|
|
49
49
|
## Development
|
50
50
|
|
@@ -9,12 +9,12 @@ latitude_sdk/env/env.py,sha256=OSBVGHXJr_48plkVagCANNy5n5F3tb48Dug_r7uo0m4,456
|
|
9
9
|
latitude_sdk/sdk/__init__.py,sha256=C9LlIjfnrS7KOK3-ruXKmbT77nSQMm23nZ6-t8sO8ME,137
|
10
10
|
latitude_sdk/sdk/errors.py,sha256=cq5swDrRFYAZWtohR1Fz9aq0D17eSb2JUTa-FeTNOC8,1412
|
11
11
|
latitude_sdk/sdk/evaluations.py,sha256=ASWfNfH124qeahzhAn-gb2Ep4QIew5uDveY5NbNsNfk,2086
|
12
|
-
latitude_sdk/sdk/latitude.py,sha256=
|
12
|
+
latitude_sdk/sdk/latitude.py,sha256=8OZ_8st4EkaUvyvmzFBYGtnkFQzFtaRE_OyY3iQes_4,2471
|
13
13
|
latitude_sdk/sdk/logs.py,sha256=BXo-SN-CarRmR_HHk7biutqyegA01UkjkIKN0Huz4Zc,2042
|
14
14
|
latitude_sdk/sdk/prompts.py,sha256=HiFlOl56YOwR_Kq9ce6o4fNsoQwJucFYY9DrtUqCjMo,10144
|
15
|
-
latitude_sdk/sdk/types.py,sha256=
|
15
|
+
latitude_sdk/sdk/types.py,sha256=B4Yk1sLlpZa2XhQPPo7lhHSwfv_XPDAO6QtTSokoJDY,7463
|
16
16
|
latitude_sdk/util/__init__.py,sha256=alIDGBnxWH4JvP-UW-7N99seBBi0r1GV1h8f1ERFBec,21
|
17
17
|
latitude_sdk/util/utils.py,sha256=WKm20UsceP352psbP8bmlgZ_IPTPYKXUIrXcesG_c08,2710
|
18
|
-
latitude_sdk-0.1.
|
19
|
-
latitude_sdk-0.1.
|
20
|
-
latitude_sdk-0.1.
|
18
|
+
latitude_sdk-0.1.0b2.dist-info/METADATA,sha256=NE8G4Gu2zeeSIpfll--kPATdtfZ-0mtsIbyoqegPvj0,1982
|
19
|
+
latitude_sdk-0.1.0b2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
20
|
+
latitude_sdk-0.1.0b2.dist-info/RECORD,,
|
File without changes
|