agentic-blocks 0.1.15__tar.gz → 0.1.16__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-blocks
3
- Version: 0.1.15
3
+ Version: 0.1.16
4
4
  Summary: Simple building blocks for agentic AI systems with MCP client and conversation management
5
5
  Author-email: Magnus Bjelkenhed <bjelkenhed@gmail.com>
6
6
  License: MIT
@@ -14,7 +14,7 @@ agentic_blocks = []
14
14
 
15
15
  [project]
16
16
  name = "agentic-blocks"
17
- version = "0.1.15"
17
+ version = "0.1.16"
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"
@@ -2,6 +2,7 @@
2
2
  Utilities for working with tools across different formats.
3
3
  """
4
4
 
5
+ import json
5
6
  from typing import Dict, Any, List
6
7
 
7
8
 
@@ -206,3 +207,14 @@ def execute_and_add_tool_responses(
206
207
  messages.add_tool_responses(results)
207
208
 
208
209
  return results
210
+
211
+
212
+ def print_tool(tool) -> None:
213
+ """
214
+ Print a single LangChain tool in OpenAI format in a readable JSON structure.
215
+
216
+ Args:
217
+ tool: A langchain_core.tools.structured.StructuredTool instance
218
+ """
219
+ openai_tool = langchain_tool_to_openai_format(tool)
220
+ print(json.dumps(openai_tool, indent=2))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentic-blocks
3
- Version: 0.1.15
3
+ Version: 0.1.16
4
4
  Summary: Simple building blocks for agentic AI systems with MCP client and conversation management
5
5
  Author-email: Magnus Bjelkenhed <bjelkenhed@gmail.com>
6
6
  License: MIT
File without changes