mojentic 0.5.6__py3-none-any.whl → 0.5.7__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.
@@ -13,7 +13,7 @@ class LLMTool:
13
13
  result = json.dumps(result)
14
14
  return {
15
15
  "content": [
16
- TextContent(type="text", text=result),
16
+ TextContent(type="text", text=result).model_dump(),
17
17
  ]
18
18
  }
19
19
 
@@ -43,20 +43,28 @@ class DescribeLLMTool:
43
43
  def should_convert_dict_result_to_json_string(self, mock_tool_with_dict_result):
44
44
  result = mock_tool_with_dict_result.call_tool()
45
45
 
46
- assert "content" in result
47
- assert isinstance(result["content"], list)
48
- assert len(result["content"]) == 1
49
- assert isinstance(result["content"][0], TextContent)
50
- assert result["content"][0].text == json.dumps({"key": "value"})
46
+ assert result == {
47
+ "content": [
48
+ {
49
+ "type": "text",
50
+ "text": '{"key": "value"}',
51
+ "annotations": None
52
+ }
53
+ ]
54
+ }
51
55
 
52
56
  def should_handle_string_result_directly(self, mock_tool_with_string_result):
53
57
  result = mock_tool_with_string_result.call_tool()
54
58
 
55
- assert "content" in result
56
- assert isinstance(result["content"], list)
57
- assert len(result["content"]) == 1
58
- assert isinstance(result["content"][0], TextContent)
59
- assert result["content"][0].text == "test result"
59
+ assert result == {
60
+ "content": [
61
+ {
62
+ "type": "text",
63
+ "text": "test result",
64
+ "annotations": None
65
+ }
66
+ ]
67
+ }
60
68
 
61
69
  def should_pass_kwargs_to_run_method(self):
62
70
  mock_run = Mock(return_value="test result")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mojentic
3
- Version: 0.5.6
3
+ Version: 0.5.7
4
4
  Summary: Mojentic is an agentic framework that aims to provide a simple and flexible way to assemble teams of agents to solve complex problems.
5
5
  Author-email: Stacey Vetzal <stacey@vetzal.com>
6
6
  Project-URL: Homepage, https://github.com/mojility/mojentic
@@ -89,8 +89,8 @@ mojentic/llm/tools/current_datetime.py,sha256=JkIFlBBnvE4CMcgZizqITVTtNfL7zeeLxD
89
89
  mojentic/llm/tools/date_resolver.py,sha256=VDxX59PTHo0PstDxaJUo3SF7vkvQoG92bo6j8ABq8y4,2185
90
90
  mojentic/llm/tools/date_resolver_spec.py,sha256=OaRvJyhSN8sgi75euk4E5ImaqUmvQdgZKY8u_NOiPWE,1185
91
91
  mojentic/llm/tools/file_manager.py,sha256=X8Uw4XtdH_Ol2EB3SN11-GYlC1diJ1cAywU9_EuCjCg,3788
92
- mojentic/llm/tools/llm_tool.py,sha256=i81TNkTiFNMtx-HAGV2bhRrTqoqzdxiPcI0lx05W3A4,745
93
- mojentic/llm/tools/llm_tool_spec.py,sha256=mDRBXrrNvKh-8ZBq6_AbnU1nqdjtdkP_C2XmztllGQM,2071
92
+ mojentic/llm/tools/llm_tool.py,sha256=En88CSBMSKegXMe1A2eaWnEiYYuKkK2x-cD384B33is,758
93
+ mojentic/llm/tools/llm_tool_spec.py,sha256=mj9nX10v8jKC5ahscmmKVe3IMNdBpRqc6C6LmROLkZw,2059
94
94
  mojentic/llm/tools/organic_web_search.py,sha256=X_WQSSFgeMp5jlm0tnqGOHDIZ2KHDvz3k6GF-XqsuN4,1301
95
95
  mojentic/llm/tools/tell_user_tool.py,sha256=bF_PTfF0-skCi_Exw6EPpdfoNUZRJ4MWg-XCe4VYd6s,999
96
96
  mojentic/llm/tools/tool_wrapper.py,sha256=6YZOhckgNsSUc7YK6bKjODjRTwi6wcH9bdcySUDPt3Q,1391
@@ -114,8 +114,8 @@ mojentic/llm/tools/ephemeral_task_manager/start_task_tool.py,sha256=VH8Wa4-ZmkMI
114
114
  mojentic/llm/tools/ephemeral_task_manager/start_task_tool_spec.py,sha256=oDeVPPfquM2ojwG0aaNnbWCB_LRgm8runtG-CumZkLg,1490
115
115
  mojentic/utils/__init__.py,sha256=lqECkkoFvHFttDnafRE1vvh0Dmna_lwupMToP5VvX5k,115
116
116
  mojentic/utils/formatting.py,sha256=bPrwwdluXdQ8TsFxfWtHNOeMWKNvAfABSoUnnA1g7c8,947
117
- mojentic-0.5.6.dist-info/licenses/LICENSE.md,sha256=txSgV8n5zY1W3NiF5HHsCwlaW0e8We1cSC6TuJUqxXA,1060
118
- mojentic-0.5.6.dist-info/METADATA,sha256=4kNiXBHxU0wqwBFCBWww1rmoggWOh1om23j8NMAgei8,4956
119
- mojentic-0.5.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
120
- mojentic-0.5.6.dist-info/top_level.txt,sha256=Q-BvPQ8Eu1jnEqK8Xkr6A9C8Xa1z38oPZRHuA5MCTqg,19
121
- mojentic-0.5.6.dist-info/RECORD,,
117
+ mojentic-0.5.7.dist-info/licenses/LICENSE.md,sha256=txSgV8n5zY1W3NiF5HHsCwlaW0e8We1cSC6TuJUqxXA,1060
118
+ mojentic-0.5.7.dist-info/METADATA,sha256=X6AdtcNt3_haoPVzJv_WijbYkovQlUhjIHV51uf6DEs,4956
119
+ mojentic-0.5.7.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
120
+ mojentic-0.5.7.dist-info/top_level.txt,sha256=Q-BvPQ8Eu1jnEqK8Xkr6A9C8Xa1z38oPZRHuA5MCTqg,19
121
+ mojentic-0.5.7.dist-info/RECORD,,