agno 1.8.2__py3-none-any.whl → 1.8.3__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.
@@ -380,26 +380,6 @@ class Claude(Model):
380
380
  log_error(f"Unexpected error calling Claude API: {str(e)}")
381
381
  raise ModelProviderError(message=str(e), model_name=self.name, model_id=self.id) from e
382
382
 
383
- def format_function_call_results(self, messages: List[Message], function_call_results: List[Message]) -> None:
384
- """
385
- Handle the results of function calls.
386
-
387
- Args:
388
- messages (List[Message]): The list of conversation messages.
389
- function_call_results (List[Message]): The results of the function calls.
390
- """
391
- if len(function_call_results) > 0:
392
- fc_responses: List = []
393
- for _fc_message in function_call_results:
394
- fc_responses.append(
395
- {
396
- "type": "tool_result",
397
- "tool_use_id": _fc_message.tool_call_id,
398
- "content": str(_fc_message.content),
399
- }
400
- )
401
- messages.append(Message(role="user", content=fc_responses))
402
-
403
383
  def get_system_message_for_model(self, tools: Optional[List[Any]] = None) -> Optional[str]:
404
384
  if tools is not None and len(tools) > 0:
405
385
  tool_call_prompt = "Do not reflect on the quality of the returned search results in your response\n\n"
@@ -277,6 +277,16 @@ def format_messages(messages: List[Message]) -> Tuple[List[Dict[str, str]], str]
277
277
  type="tool_use",
278
278
  )
279
279
  )
280
+
281
+ elif message.role == "tool":
282
+ content = []
283
+ content.append(
284
+ {
285
+ "type": "tool_result",
286
+ "tool_use_id": message.tool_call_id,
287
+ "content": str(message.content),
288
+ }
289
+ )
280
290
 
281
291
  # Skip empty assistant responses
282
292
  if message.role == "assistant" and not content:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agno
3
- Version: 1.8.2
3
+ Version: 1.8.3
4
4
  Summary: Agno: a lightweight library for building Multi-Agent Systems
5
5
  Author-email: Ashpreet Bedi <ashpreet@agno.com>
6
6
  License: Copyright (c) Agno, Inc.
@@ -202,7 +202,7 @@ agno/models/response.py,sha256=iXUlBCM9FWZVRLygSQH8G-vhgKttQazLBa7L_NxgEjg,3771
202
202
  agno/models/aimlapi/__init__.py,sha256=ulPl-IAEcXvr83AXoCuZmOnoSZ0v47ZGTgEHSzUD2KM,78
203
203
  agno/models/aimlapi/aimlapi.py,sha256=o5pu9ypreAK-IkPAosHbLpAvbxu9u3jxBsgYPtS9bzo,1455
204
204
  agno/models/anthropic/__init__.py,sha256=nbReX3p17JCwfrMDR9hR7-OaEFZm80I7dng93dl-Fhw,77
205
- agno/models/anthropic/claude.py,sha256=QLrmI1dyjMah3y0MJMAvZ2MRmnOsboSHihoXxA6v1AM,24669
205
+ agno/models/anthropic/claude.py,sha256=-R9MzNC9zZEgtXk75huDD0PbUiSlpA3b1uF6tG3WucI,23832
206
206
  agno/models/aws/__init__.py,sha256=TbcwQwv9A7KjqBM5RQBR8x46GvyyCxbBCjwkpjfVGKE,352
207
207
  agno/models/aws/bedrock.py,sha256=Yx09syx1Kv8awfHuy7jj_EK_gs-n6D2an3RUVRO2K2s,35123
208
208
  agno/models/aws/claude.py,sha256=3B-ghgJT-yhM8xJSspSFoSna7dpr10STA4Br4A7lzvc,13111
@@ -496,7 +496,7 @@ agno/utils/yaml_io.py,sha256=cwTqCE-eBGoi87KLDcwB6iyWe0NcvEmadQjWL1cQ7jE,860
496
496
  agno/utils/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
497
497
  agno/utils/models/ai_foundry.py,sha256=PmhETWhdqZCq8NbDe-MdZVuRXx6DbVOePCyPFiPLceo,1511
498
498
  agno/utils/models/aws_claude.py,sha256=UayU7E4PK-GCm1zEdD31iM8pSbPGtIGlPkrbaFRA34Q,5662
499
- agno/utils/models/claude.py,sha256=CQ36iQda9UOjAeou8q7U4FtVY6UFj13pvRyO0sIHlh8,11285
499
+ agno/utils/models/claude.py,sha256=avkKN0j0W03IEh_E6_2BAo5-c4Xkwxvh_6esarq_bOc,11599
500
500
  agno/utils/models/cohere.py,sha256=SuZyupN1clBNMaSkHDQXWcTpY96rcF5EhMK5gpQAi94,3248
501
501
  agno/utils/models/llama.py,sha256=Z5fdOFUFnov1JgUDcP6ICK3M7o64UB1fkcwAs2XaZkM,2515
502
502
  agno/utils/models/mistral.py,sha256=v-ERNweHjmobUv5LOpB7XDxGZotXgGTC_hIFBJD1k3E,4013
@@ -558,9 +558,9 @@ agno/workspace/enums.py,sha256=MxF1CUMXBaZMTKLEfiR-7kEhTki2Gfz6W7u49RdYYaE,123
558
558
  agno/workspace/helpers.py,sha256=Mp-VlRsPVhW10CfDWYVhc9ANLk9RjNurDfCgXmycZCg,2066
559
559
  agno/workspace/operator.py,sha256=CNLwVR45eE5dSRjto2o0c9NgCi2xD-JZR5uLt9kfIt8,30758
560
560
  agno/workspace/settings.py,sha256=bcyHHN7lH1LPSMt4i_20XpTjZLoNXdzwyW-G9nHYV40,5703
561
- agno-1.8.2.dist-info/licenses/LICENSE,sha256=m2rfTWFUfIwCaQqgT2WeBjuKzMKEJRwnaiofg9n8MsQ,16751
562
- agno-1.8.2.dist-info/METADATA,sha256=vlStPRB06iknugb3p8fape5PRLcWQRybNm2L4Upa92E,44612
563
- agno-1.8.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
564
- agno-1.8.2.dist-info/entry_points.txt,sha256=Be-iPnPVabMohESsuUdV5w6IAYEIlpc2emJZbyNnfGI,88
565
- agno-1.8.2.dist-info/top_level.txt,sha256=MKyeuVesTyOKIXUhc-d_tPa2Hrh0oTA4LM0izowpx70,5
566
- agno-1.8.2.dist-info/RECORD,,
561
+ agno-1.8.3.dist-info/licenses/LICENSE,sha256=m2rfTWFUfIwCaQqgT2WeBjuKzMKEJRwnaiofg9n8MsQ,16751
562
+ agno-1.8.3.dist-info/METADATA,sha256=WCUqkYO5iR6OsPTJJaMLMsCTSSu5y1L_W5Ju9RwERv4,44612
563
+ agno-1.8.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
564
+ agno-1.8.3.dist-info/entry_points.txt,sha256=Be-iPnPVabMohESsuUdV5w6IAYEIlpc2emJZbyNnfGI,88
565
+ agno-1.8.3.dist-info/top_level.txt,sha256=MKyeuVesTyOKIXUhc-d_tPa2Hrh0oTA4LM0izowpx70,5
566
+ agno-1.8.3.dist-info/RECORD,,
File without changes