grasp_agents 0.2.8__py3-none-any.whl → 0.2.10__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.
- grasp_agents/cloud_llm.py +1 -2
- grasp_agents/costs_dict.yaml +28 -20
- grasp_agents/openai/openai_llm.py +2 -2
- {grasp_agents-0.2.8.dist-info → grasp_agents-0.2.10.dist-info}/METADATA +1 -1
- {grasp_agents-0.2.8.dist-info → grasp_agents-0.2.10.dist-info}/RECORD +7 -7
- {grasp_agents-0.2.8.dist-info → grasp_agents-0.2.10.dist-info}/WHEEL +0 -0
- {grasp_agents-0.2.8.dist-info → grasp_agents-0.2.10.dist-info}/licenses/LICENSE.md +0 -0
grasp_agents/cloud_llm.py
CHANGED
@@ -153,8 +153,7 @@ class CloudLLM(LLM[SettingsT, ConvertT], Generic[SettingsT, ConvertT]):
|
|
153
153
|
and not self._struct_output_support
|
154
154
|
):
|
155
155
|
raise ValueError(
|
156
|
-
f"Model {
|
157
|
-
"not support structured outputs."
|
156
|
+
f"Model {self._model_name} does not support structured outputs."
|
158
157
|
)
|
159
158
|
|
160
159
|
self._rate_limiter: RateLimiterC[Conversation, AssistantMessage] | None = (
|
grasp_agents/costs_dict.yaml
CHANGED
@@ -1,8 +1,32 @@
|
|
1
1
|
costs:
|
2
|
-
|
2
|
+
gemini-2.5-pro-preview-05-06:
|
3
|
+
input: 1.25
|
4
|
+
output: 10
|
5
|
+
cached_discount: 0.5
|
6
|
+
google/gemini-2.5-pro-preview:
|
7
|
+
input: 1.25
|
8
|
+
output: 10
|
9
|
+
cached_discount: 0.5
|
10
|
+
gemini-2.5-flash-preview-05-20:
|
3
11
|
input: 0.15
|
4
12
|
output: 0.60
|
5
13
|
cached_discount: 0.5
|
14
|
+
google/gemini-2.5-flash-preview-05-20:
|
15
|
+
input: 0.15
|
16
|
+
output: 0.60
|
17
|
+
cached_discount: 0.5
|
18
|
+
gemini-1.5-pro:
|
19
|
+
input: 1.25
|
20
|
+
output: 5
|
21
|
+
cached_discount: 0.5
|
22
|
+
gemini-2.0-flash:
|
23
|
+
input: 0.1
|
24
|
+
output: 0.4
|
25
|
+
cached_discount: 0.5
|
26
|
+
google/gemini-2.0-flash-001:
|
27
|
+
input: 0.1
|
28
|
+
output: 0.4
|
29
|
+
cached_discount: 0.5
|
6
30
|
gpt-4.1:
|
7
31
|
input: 2.0
|
8
32
|
output: 8.0
|
@@ -19,26 +43,10 @@ costs:
|
|
19
43
|
input: 2.0
|
20
44
|
output: 8.0
|
21
45
|
cached_discount: 0.5
|
22
|
-
google/gemini-2.5-pro-preview-03-25:
|
23
|
-
input: 1.25
|
24
|
-
output: 10
|
25
|
-
cached_discount: 0.5
|
26
|
-
gemini-2.5-pro-preview-03-25:
|
27
|
-
input: 1.25
|
28
|
-
output: 10
|
29
|
-
cached_discount: 0.5
|
30
46
|
llama-3.3-70b-versatile:
|
31
47
|
input: 0.59
|
32
48
|
output: 0.79
|
33
49
|
cached_discount: 0.5
|
34
|
-
gemini-1.5-pro:
|
35
|
-
input: 1.25
|
36
|
-
output: 5
|
37
|
-
cached_discount: 0.5
|
38
|
-
gemini-2.0-flash:
|
39
|
-
input: 0.1
|
40
|
-
output: 0.4
|
41
|
-
cached_discount: 0.5
|
42
50
|
anthropic/claude-3.5-sonnet:
|
43
51
|
input: 3.0
|
44
52
|
output: 15
|
@@ -47,9 +55,9 @@ costs:
|
|
47
55
|
input: 3.0
|
48
56
|
output: 15
|
49
57
|
cached_discount: 0.5
|
50
|
-
|
51
|
-
input: 0
|
52
|
-
output:
|
58
|
+
anthropic/claude-sonnet-4:
|
59
|
+
input: 3.0
|
60
|
+
output: 15
|
53
61
|
cached_discount: 0.5
|
54
62
|
deepseek/deepseek-chat:
|
55
63
|
input: 0.4
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import logging
|
2
|
-
from collections.abc import Iterable
|
2
|
+
from collections.abc import Iterable, Mapping
|
3
3
|
from copy import deepcopy
|
4
4
|
from typing import Any, Literal
|
5
5
|
|
@@ -67,7 +67,7 @@ class OpenAILLM(CloudLLM[OpenAILLMSettings, OpenAIConverters]):
|
|
67
67
|
model_id: str | None = None,
|
68
68
|
llm_settings: OpenAILLMSettings | None = None,
|
69
69
|
tools: list[BaseTool[BaseModel, Any, Any]] | None = None,
|
70
|
-
response_format: type | None = None,
|
70
|
+
response_format: type | Mapping[str, type] | None = None,
|
71
71
|
# Connection settings
|
72
72
|
async_http_client_params: (
|
73
73
|
dict[str, Any] | AsyncHTTPClientParams | None
|
@@ -2,9 +2,9 @@ grasp_agents/__init__.py,sha256=WPNUUFbucwli6oWIwxbckz0zpY4W2LnND0o7melYZOw,979
|
|
2
2
|
grasp_agents/agent_message.py,sha256=eJV5n44t8EIE6M3jl48Ld7pmaW9dDhBX_FWm_u9yGWE,877
|
3
3
|
grasp_agents/agent_message_pool.py,sha256=OKTXNEo9LAJTQJkzxmJ3TQgWw7WJKOzrKCJjeHpln6o,3158
|
4
4
|
grasp_agents/base_agent.py,sha256=6WHBS17KqbiCVSREOiIJXlHfNrYb0AKvs0dEShogQGE,1363
|
5
|
-
grasp_agents/cloud_llm.py,sha256=
|
5
|
+
grasp_agents/cloud_llm.py,sha256=QqfnqLtInbekeT8R-sWMTrPiMwazyPaGoQ9K2wuh6gE,13336
|
6
6
|
grasp_agents/comm_agent.py,sha256=U2R942X5yjPr27j9soUdueXtAzvduI7iON9QgoSDBAo,7271
|
7
|
-
grasp_agents/costs_dict.yaml,sha256=
|
7
|
+
grasp_agents/costs_dict.yaml,sha256=2MFNWtkv5W5WSCcv1Cj13B1iQLVv5Ot9pS_KW2Gu2DA,2510
|
8
8
|
grasp_agents/generics_utils.py,sha256=kw4Odte6Nvl4c9U7-mKPgXCavWZXo009zYDHAA0BR3g,6234
|
9
9
|
grasp_agents/grasp_logging.py,sha256=H1GYhXdQvVkmauFDZ-KDwvVmPQHZUUm9sRqX_ObK2xI,1111
|
10
10
|
grasp_agents/http_client.py,sha256=KZva2MjJjuI5ohUeU8RdTAImUnQYaqBrV2jDH8smbJw,738
|
@@ -23,7 +23,7 @@ grasp_agents/openai/completion_converters.py,sha256=gt06DO2jrMsgJGHPIhoTHeM3R0yH
|
|
23
23
|
grasp_agents/openai/content_converters.py,sha256=6GI0D7xJalzsiawAJOyCUzTJTo0NQdpv87YKmfN0LYQ,2631
|
24
24
|
grasp_agents/openai/converters.py,sha256=DBXBxow9oRG6pc8inpZBLiuUqHzVfpscmHFpN9bAdvc,5276
|
25
25
|
grasp_agents/openai/message_converters.py,sha256=Gol5lFDu3eSagDsvWi_ql0QYcAT3-_5YCbU75xwuBK0,4823
|
26
|
-
grasp_agents/openai/openai_llm.py,sha256=
|
26
|
+
grasp_agents/openai/openai_llm.py,sha256=JZdM0YerpDJW1IX7BW8lawgGdUHUW1ka4JSEqKxXuUQ,6075
|
27
27
|
grasp_agents/openai/tool_converters.py,sha256=72DmyNW9WylesRH-m5fi7H2Wu1U9gUXqMQ-UdX_M7mU,1068
|
28
28
|
grasp_agents/rate_limiting/__init__.py,sha256=KRgtF_E7R3YfA2cpYcFcZ7wycV0pWVJ0xRQC7YhiIEQ,158
|
29
29
|
grasp_agents/rate_limiting/rate_limiter_chunked.py,sha256=BPgkUXvhmZhTpZs2T6uujNFuxH_kYHiISuf6_-eNhUc,5544
|
@@ -40,7 +40,7 @@ grasp_agents/workflow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
40
40
|
grasp_agents/workflow/looped_agent.py,sha256=5tvlkPyhPdNGVSEaxTNPX0QQfPwP01OpZrvmv4bWXsA,4046
|
41
41
|
grasp_agents/workflow/sequential_agent.py,sha256=SbeAKHCbhMy-2CmQWs1f5VMSRj88MLiAQc76g_ivGvA,2131
|
42
42
|
grasp_agents/workflow/workflow_agent.py,sha256=E6jzfFmdUfCoYehH9ZsAa_MTICjEaP4NGwNxhc3NR_E,2436
|
43
|
-
grasp_agents-0.2.
|
44
|
-
grasp_agents-0.2.
|
45
|
-
grasp_agents-0.2.
|
46
|
-
grasp_agents-0.2.
|
43
|
+
grasp_agents-0.2.10.dist-info/METADATA,sha256=lBHs7V6zm6E63yspRA9OOHS80M7hCtyVxuCNkaNce5Y,7188
|
44
|
+
grasp_agents-0.2.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
45
|
+
grasp_agents-0.2.10.dist-info/licenses/LICENSE.md,sha256=-nNNdWqGB8gJ2O-peFQ2Irshv5tW5pHKyTcYkwvH7CE,1201
|
46
|
+
grasp_agents-0.2.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|