agentic-blocks 0.1.11__py3-none-any.whl → 0.1.12__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.
- agentic_blocks/utils/tools_utils.py +12 -5
- {agentic_blocks-0.1.11.dist-info → agentic_blocks-0.1.12.dist-info}/METADATA +1 -1
- {agentic_blocks-0.1.11.dist-info → agentic_blocks-0.1.12.dist-info}/RECORD +6 -6
- {agentic_blocks-0.1.11.dist-info → agentic_blocks-0.1.12.dist-info}/WHEEL +0 -0
- {agentic_blocks-0.1.11.dist-info → agentic_blocks-0.1.12.dist-info}/licenses/LICENSE +0 -0
- {agentic_blocks-0.1.11.dist-info → agentic_blocks-0.1.12.dist-info}/top_level.txt +0 -0
@@ -18,16 +18,23 @@ def langchain_tool_to_openai_format(tool) -> Dict[str, Any]:
|
|
18
18
|
"""
|
19
19
|
schema = tool.args_schema.model_json_schema()
|
20
20
|
|
21
|
+
# Build parameters object, including $defs if present
|
22
|
+
parameters = {
|
23
|
+
"type": "object",
|
24
|
+
"properties": schema.get("properties", {}),
|
25
|
+
"required": schema.get("required", [])
|
26
|
+
}
|
27
|
+
|
28
|
+
# Include $defs if present in the schema
|
29
|
+
if "$defs" in schema:
|
30
|
+
parameters["$defs"] = schema["$defs"]
|
31
|
+
|
21
32
|
return {
|
22
33
|
"type": "function",
|
23
34
|
"function": {
|
24
35
|
"name": schema.get("title", tool.name),
|
25
36
|
"description": schema.get("description", ""),
|
26
|
-
"parameters":
|
27
|
-
"type": "object",
|
28
|
-
"properties": schema.get("properties", {}),
|
29
|
-
"required": schema.get("required", [])
|
30
|
-
}
|
37
|
+
"parameters": parameters
|
31
38
|
}
|
32
39
|
}
|
33
40
|
|
@@ -2,9 +2,9 @@ agentic_blocks/__init__.py,sha256=LJy2tzTwX9ZjPw8dqkXOWiude7ZDDIaBIvaLC8U4d_Y,43
|
|
2
2
|
agentic_blocks/llm.py,sha256=q2Utx2NiffLrp7VHmQIRZtBtrnQSMFtqCeYs9ynj0Ww,5335
|
3
3
|
agentic_blocks/mcp_client.py,sha256=15mIN_Qw0OVNJAvfgO3jVZS4-AU4TtvEQSFDlL9ruqA,9773
|
4
4
|
agentic_blocks/messages.py,sha256=dxaR_-IiH8n7pZygFDiUt8n7mMOm--FRuN-xCQEuewo,11758
|
5
|
-
agentic_blocks/utils/tools_utils.py,sha256=
|
6
|
-
agentic_blocks-0.1.
|
7
|
-
agentic_blocks-0.1.
|
8
|
-
agentic_blocks-0.1.
|
9
|
-
agentic_blocks-0.1.
|
10
|
-
agentic_blocks-0.1.
|
5
|
+
agentic_blocks/utils/tools_utils.py,sha256=p1q0qcyQqAEYxoGNbWTRcn4R9CpTH0QkdWOc7OiGveg,5931
|
6
|
+
agentic_blocks-0.1.12.dist-info/licenses/LICENSE,sha256=r4IcBaAjTv3-yfjXgDPuRD953Qci0Y0nQn5JfHwLyBY,1073
|
7
|
+
agentic_blocks-0.1.12.dist-info/METADATA,sha256=vcmqy_lp9Nr5jirQeSHwqcx8hOoknXilYiJ9DYvtuxQ,11944
|
8
|
+
agentic_blocks-0.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
9
|
+
agentic_blocks-0.1.12.dist-info/top_level.txt,sha256=-1a4RAemqicXLU1rRzw4QHV3KlNeQDNxVs3m2gAT238,15
|
10
|
+
agentic_blocks-0.1.12.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|