@@ -107,6 +107,23 @@ def llm_to_hatchling_tool_call(self, event):
107107 def mcp_to_provider_tool (self , tool_info ):
108108 """Mock implementation of mcp_to_provider_tool."""
109109 return {"type" : "function" , "function" : {"name" : tool_info .name }}
110+
111+ def hatchling_to_llm_tool_call (self , tool_call ):
112+ """Mock implementation of hatchling_to_llm_tool_call."""
113+ return {
114+ "id" : tool_call .tool_call_id ,
115+ "function" : {
116+ "name" : tool_call .function_name ,
117+ "arguments" : tool_call .arguments
118+ }
119+ }
120+
121+ def hatchling_to_provider_tool_result (self , tool_result ):
122+ """Mock implementation of hatchling_to_provider_tool_result."""
123+ return {
124+ "tool_call_id" : tool_result .tool_call_id ,
125+ "content" : str (tool_result .result )
126+ }
110127
111128 # Should be able to instantiate concrete implementation
112129 test_settings = test_data .get_test_settings ()
@@ -164,6 +181,23 @@ def llm_to_hatchling_tool_call(self, event):
164181 def mcp_to_provider_tool (self , tool_info ):
165182 """Mock implementation of mcp_to_provider_tool."""
166183 return {"type" : "function" , "function" : {"name" : tool_info .name }}
184+
185+ def hatchling_to_llm_tool_call (self , tool_call ):
186+ """Mock implementation of hatchling_to_llm_tool_call."""
187+ return {
188+ "id" : tool_call .tool_call_id ,
189+ "function" : {
190+ "name" : tool_call .function_name ,
191+ "arguments" : tool_call .arguments
192+ }
193+ }
194+
195+ def hatchling_to_provider_tool_result (self , tool_result ):
196+ """Mock implementation of hatchling_to_provider_tool_result."""
197+ return {
198+ "tool_call_id" : tool_result .tool_call_id ,
199+ "content" : str (tool_result .result )
200+ }
167201
168202 provider = OllamaProvider ({})
169203 self .assertEqual (provider .provider_name , "ollama" ,
0 commit comments