agentic-blocks 0.1.11__tar.gz → 0.1.12__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.
- {agentic_blocks-0.1.11/src/agentic_blocks.egg-info → agentic_blocks-0.1.12}/PKG-INFO +1 -1
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/pyproject.toml +1 -1
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks/utils/tools_utils.py +12 -5
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12/src/agentic_blocks.egg-info}/PKG-INFO +1 -1
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/LICENSE +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/README.md +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/setup.cfg +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks/__init__.py +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks/llm.py +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks/mcp_client.py +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks/messages.py +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks.egg-info/SOURCES.txt +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks.egg-info/dependency_links.txt +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks.egg-info/requires.txt +0 -0
- {agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks.egg-info/top_level.txt +0 -0
@@ -14,7 +14,7 @@ agentic_blocks = []
|
|
14
14
|
|
15
15
|
[project]
|
16
16
|
name = "agentic-blocks"
|
17
|
-
version = "0.1.
|
17
|
+
version = "0.1.12"
|
18
18
|
description = "Simple building blocks for agentic AI systems with MCP client and conversation management"
|
19
19
|
readme = "README.md"
|
20
20
|
requires-python = ">=3.11"
|
@@ -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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{agentic_blocks-0.1.11 → agentic_blocks-0.1.12}/src/agentic_blocks.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|