langroid 0.1.228__py3-none-any.whl → 0.1.229__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.
@@ -63,7 +63,6 @@ class LLMFunctionCall(BaseModel):
63
63
  """
64
64
 
65
65
  name: str # name of function to call
66
- to: str = "" # intended recipient
67
66
  arguments: Optional[Dict[str, Any]] = None
68
67
 
69
68
  @staticmethod
@@ -227,14 +226,9 @@ class LLMResponse(BaseModel):
227
226
  if self.function_call is not None:
228
227
  # in this case we ignore message, since all information is in function_call
229
228
  msg = ""
230
- # recipient may either have been specified as a special field "to" in
231
- # function_call, or as a parameter "recipient" in the arguments
232
- # (the latter can happen when using a Tool that has a 'recipient' parameter)
233
- recipient = self.function_call.to
234
- if recipient == "":
235
- args = self.function_call.arguments
236
- if isinstance(args, dict):
237
- recipient = args.get("recipient", "")
229
+ args = self.function_call.arguments
230
+ if isinstance(args, dict):
231
+ recipient = args.get("recipient", "")
238
232
  return recipient, msg
239
233
  else:
240
234
  msg = self.message
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: langroid
3
- Version: 0.1.228
3
+ Version: 0.1.229
4
4
  Summary: Harness LLMs with Multi-Agent Programming
5
5
  License: MIT
6
6
  Author: Prasad Chalasani
@@ -59,7 +59,7 @@ langroid/embedding_models/protoc/embeddings_pb2_grpc.py,sha256=9dYQqkW3JPyBpSEje
59
59
  langroid/embedding_models/remote_embeds.py,sha256=6_kjXByVbqhY9cGwl9R83ZcYC2km-nGieNNAo1McHaY,5151
60
60
  langroid/language_models/__init__.py,sha256=5L9ndEEC8iLJHjDJmYFTnv6-2-3xsxWUMHcugR8IeDs,821
61
61
  langroid/language_models/azure_openai.py,sha256=ncRCbKooqLVOY-PWQUIo9C3yTuKEFbAwyngXT_M4P7k,5989
62
- langroid/language_models/base.py,sha256=4ybrbvOnoWzEVzVuZ3AStsl8ELoljiKtgtdykUzRSxg,21014
62
+ langroid/language_models/base.py,sha256=Yy_6TP9Qj5CmNtDVQfbcyfytCsvGyow0e1OeqhWGY0A,20638
63
63
  langroid/language_models/config.py,sha256=5UF3DzO1a-Dfsc3vghE0XGq7g9t_xDsRCsuRiU4dgBg,366
64
64
  langroid/language_models/openai_assistants.py,sha256=9K-DEAL2aSWHeXj2hwCo2RAlK9_1oCPtqX2u1wISCj8,36
65
65
  langroid/language_models/openai_gpt.py,sha256=3W0gi7_Ja0c0vuT8SDv8ioOWXyUKs7zJORx8BV-QT2g,49672
@@ -120,7 +120,7 @@ langroid/vector_store/meilisearch.py,sha256=d2huA9P-NoYRuAQ9ZeXJmMKr7ry8u90RUSR2
120
120
  langroid/vector_store/momento.py,sha256=9cui31TTrILid2KIzUpBkN2Ey3g_CZWOQVdaFsA4Ors,10045
121
121
  langroid/vector_store/qdrant_cloud.py,sha256=3im4Mip0QXLkR6wiqVsjV1QvhSElfxdFSuDKddBDQ-4,188
122
122
  langroid/vector_store/qdrantdb.py,sha256=foKRxRv0BBony6S4Vt0Vav9Rn9HMxZvcIh1cE7nosFE,13524
123
- langroid-0.1.228.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
124
- langroid-0.1.228.dist-info/METADATA,sha256=ZineIvSkpCMJ-NqtqT_24P8Y3pbBZwP1ntP5myCKaBU,47863
125
- langroid-0.1.228.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
126
- langroid-0.1.228.dist-info/RECORD,,
123
+ langroid-0.1.229.dist-info/LICENSE,sha256=EgVbvA6VSYgUlvC3RvPKehSg7MFaxWDsFuzLOsPPfJg,1065
124
+ langroid-0.1.229.dist-info/METADATA,sha256=2FXDkWjDrhYNvrCDCdshNanmBCAzW8N1t_4UUR9iNVI,47863
125
+ langroid-0.1.229.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
126
+ langroid-0.1.229.dist-info/RECORD,,