lionagi 0.5.3__tar.gz → 0.5.5__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (393) hide show
  1. {lionagi-0.5.3 → lionagi-0.5.5}/.env.example +1 -1
  2. {lionagi-0.5.3 → lionagi-0.5.5}/PKG-INFO +1 -1
  3. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/action/action_manager.py +2 -0
  4. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/assistant_response.py +10 -0
  5. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/message.py +1 -1
  6. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/message_manager.py +13 -0
  7. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/utils.py +4 -2
  8. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/session/branch_mixins.py +76 -39
  9. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/session/session.py +3 -3
  10. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/AnthropicModel.py +4 -9
  11. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/AnthropicService.py +10 -0
  12. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/anthropic_max_output_token_data.yaml +5 -0
  13. lionagi-0.5.5/lionagi/integrations/anthropic_/anthropic_price_data.yaml +34 -0
  14. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/version.py +1 -1
  15. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/GroqService.py +5 -0
  16. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/version.py +1 -1
  17. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/litellm_/imodel.py +5 -0
  18. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/OpenAIModel.py +0 -4
  19. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/OpenAIService.py +9 -0
  20. lionagi-0.5.5/lionagi/integrations/openai_/version.py +1 -0
  21. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/PerplexityService.py +5 -0
  22. lionagi-0.5.5/lionagi/integrations/perplexity_/version.py +1 -0
  23. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/alcall.py +7 -0
  24. lionagi-0.5.5/lionagi/operations/brainstorm/brainstorm.py +429 -0
  25. lionagi-0.5.5/lionagi/operations/plan/plan.py +385 -0
  26. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/imodel.py +5 -0
  27. lionagi-0.5.5/lionagi/version.py +1 -0
  28. {lionagi-0.5.3 → lionagi-0.5.5}/pyproject.toml +1 -1
  29. {lionagi-0.5.3 → lionagi-0.5.5}/uv.lock +48 -55
  30. lionagi-0.5.3/lionagi/integrations/anthropic_/anthropic_price_data.yaml +0 -14
  31. lionagi-0.5.3/lionagi/integrations/openai_/version.py +0 -1
  32. lionagi-0.5.3/lionagi/integrations/perplexity_/version.py +0 -1
  33. lionagi-0.5.3/lionagi/operations/brainstorm/brainstorm.py +0 -204
  34. lionagi-0.5.3/lionagi/operations/plan/plan.py +0 -172
  35. lionagi-0.5.3/lionagi/version.py +0 -1
  36. {lionagi-0.5.3 → lionagi-0.5.5}/.github/FUNDING.yml +0 -0
  37. {lionagi-0.5.3 → lionagi-0.5.5}/.github/dependabot.yml +0 -0
  38. {lionagi-0.5.3 → lionagi-0.5.5}/.github/workflows/ci.yml +0 -0
  39. {lionagi-0.5.3 → lionagi-0.5.5}/.github/workflows/codeql.yml +0 -0
  40. {lionagi-0.5.3 → lionagi-0.5.5}/.github/workflows/release.yml +0 -0
  41. {lionagi-0.5.3 → lionagi-0.5.5}/.gitignore +0 -0
  42. {lionagi-0.5.3 → lionagi-0.5.5}/.pre-commit-config.yaml +0 -0
  43. {lionagi-0.5.3 → lionagi-0.5.5}/.python-version +0 -0
  44. {lionagi-0.5.3 → lionagi-0.5.5}/CODE_OF_CONDUCT.md +0 -0
  45. {lionagi-0.5.3 → lionagi-0.5.5}/CONTRIBUTING.md +0 -0
  46. {lionagi-0.5.3 → lionagi-0.5.5}/LICENSE +0 -0
  47. {lionagi-0.5.3 → lionagi-0.5.5}/README.md +0 -0
  48. {lionagi-0.5.3 → lionagi-0.5.5}/docs/api_reference/action.md +0 -0
  49. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/__init__.py +0 -0
  50. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/__init__.py +0 -0
  51. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/_class_registry.py +0 -0
  52. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/action/__init__.py +0 -0
  53. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/action/base.py +0 -0
  54. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/action/function_calling.py +0 -0
  55. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/action/tool.py +0 -0
  56. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/action/types.py +0 -0
  57. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/__init__.py +0 -0
  58. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/action_request.py +0 -0
  59. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/action_response.py +0 -0
  60. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/base_mail.py +0 -0
  61. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/instruction.py +0 -0
  62. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/system.py +0 -0
  63. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/README.md +0 -0
  64. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/action_request.jinja2 +0 -0
  65. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/action_response.jinja2 +0 -0
  66. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/assistant_response.jinja2 +0 -0
  67. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/instruction_message.jinja2 +0 -0
  68. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/system_message.jinja2 +0 -0
  69. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/templates/tool_schemas.jinja2 +0 -0
  70. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/communication/types.py +0 -0
  71. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/forms/__init__.py +0 -0
  72. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/forms/base.py +0 -0
  73. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/forms/form.py +0 -0
  74. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/forms/report.py +0 -0
  75. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/forms/types.py +0 -0
  76. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/forms/utils.py +0 -0
  77. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/__init__.py +0 -0
  78. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/component.py +0 -0
  79. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/edge.py +0 -0
  80. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/element.py +0 -0
  81. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/graph.py +0 -0
  82. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/log.py +0 -0
  83. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/log_manager.py +0 -0
  84. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/node.py +0 -0
  85. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/pile.py +0 -0
  86. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/progression.py +0 -0
  87. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/types.py +0 -0
  88. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/generic/utils.py +0 -0
  89. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/__init__.py +0 -0
  90. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/base.py +0 -0
  91. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/field_model.py +0 -0
  92. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/model_params.py +0 -0
  93. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/note.py +0 -0
  94. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/operable_model.py +0 -0
  95. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/schema_model.py +0 -0
  96. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/models/types.py +0 -0
  97. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/session/__init__.py +0 -0
  98. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/session/branch.py +0 -0
  99. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/session/types.py +0 -0
  100. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/typing/__init__.py +0 -0
  101. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/typing/_concepts.py +0 -0
  102. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/typing/_id.py +0 -0
  103. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/typing/_pydantic.py +0 -0
  104. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/core/typing/_typing.py +0 -0
  105. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/__init__.py +0 -0
  106. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/_services.py +0 -0
  107. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/__init__.py +0 -0
  108. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/__init__.py +0 -0
  109. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/api_request.py +0 -0
  110. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/data_models.py +0 -0
  111. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/match_response.py +0 -0
  112. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/__init__.py +0 -0
  113. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/request/__init__.py +0 -0
  114. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/request/message_models.py +0 -0
  115. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/request/request_body.py +0 -0
  116. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/response/__init__.py +0 -0
  117. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/response/content_models.py +0 -0
  118. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/response/response_body.py +0 -0
  119. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/anthropic_/api_endpoints/messages/response/usage_models.py +0 -0
  120. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/GroqModel.py +0 -0
  121. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/__init__.py +0 -0
  122. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/api_endpoints/__init__.py +0 -0
  123. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/api_endpoints/data_models.py +0 -0
  124. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/api_endpoints/groq_request.py +0 -0
  125. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/api_endpoints/match_response.py +0 -0
  126. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/api_endpoints/response_utils.py +0 -0
  127. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/groq_max_output_token_data.yaml +0 -0
  128. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/groq_price_data.yaml +0 -0
  129. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/groq_/groq_rate_limits.yaml +0 -0
  130. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/litellm_/__init__.py +0 -0
  131. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/OllamaModel.py +0 -0
  132. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/OllamaService.py +0 -0
  133. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/__init__.py +0 -0
  134. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/__init__.py +0 -0
  135. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/api_request.py +0 -0
  136. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/chat_completion/__init__.py +0 -0
  137. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/chat_completion/message_models.py +0 -0
  138. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/chat_completion/request_body.py +0 -0
  139. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/chat_completion/response_body.py +0 -0
  140. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/chat_completion/tool_models.py +0 -0
  141. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/completion/__init__.py +0 -0
  142. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/completion/request_body.py +0 -0
  143. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/completion/response_body.py +0 -0
  144. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/data_models.py +0 -0
  145. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/embedding/__init__.py +0 -0
  146. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/embedding/request_body.py +0 -0
  147. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/embedding/response_body.py +0 -0
  148. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/match_data_model.py +0 -0
  149. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/match_response.py +0 -0
  150. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/__init__.py +0 -0
  151. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/copy_model.py +0 -0
  152. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/create_model.py +0 -0
  153. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/delete_model.py +0 -0
  154. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/list_model.py +0 -0
  155. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/pull_model.py +0 -0
  156. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/push_model.py +0 -0
  157. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/model/show_model.py +0 -0
  158. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/ollama_/api_endpoints/option_models.py +0 -0
  159. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/__init__.py +0 -0
  160. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/__init__.py +0 -0
  161. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/api_request.py +0 -0
  162. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/audio/__init__.py +0 -0
  163. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/audio/speech_models.py +0 -0
  164. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/audio/transcription_models.py +0 -0
  165. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/audio/translation_models.py +0 -0
  166. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/audio/types.py +0 -0
  167. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/__init__.py +0 -0
  168. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/batch_models.py +0 -0
  169. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/cancel_batch.py +0 -0
  170. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/create_batch.py +0 -0
  171. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/list_batch.py +0 -0
  172. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/request_object_models.py +0 -0
  173. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/retrieve_batch.py +0 -0
  174. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/batch/types.py +0 -0
  175. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/__init__.py +0 -0
  176. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/__init__.py +0 -0
  177. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/message_models.py +0 -0
  178. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/request_body.py +0 -0
  179. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/response_format.py +0 -0
  180. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/stream_options.py +0 -0
  181. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/tool_choice_models.py +0 -0
  182. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/tool_models.py +0 -0
  183. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/request/types.py +0 -0
  184. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/__init__.py +0 -0
  185. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/choice_models.py +0 -0
  186. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/function_models.py +0 -0
  187. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/log_prob_models.py +0 -0
  188. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/message_models.py +0 -0
  189. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/response_body.py +0 -0
  190. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/types.py +0 -0
  191. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/response/usage_models.py +0 -0
  192. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/chat_completions/util.py +0 -0
  193. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/data_models.py +0 -0
  194. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/embeddings/__init__.py +0 -0
  195. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/embeddings/request_body.py +0 -0
  196. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/embeddings/response_body.py +0 -0
  197. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/files/__init__.py +0 -0
  198. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/files/delete_file.py +0 -0
  199. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/files/file_models.py +0 -0
  200. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/files/list_files.py +0 -0
  201. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/files/retrieve_file.py +0 -0
  202. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/files/upload_file.py +0 -0
  203. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/__init__.py +0 -0
  204. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/cancel_jobs.py +0 -0
  205. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/create_jobs.py +0 -0
  206. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/fine_tuning_job_checkpoint_models.py +0 -0
  207. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/fine_tuning_job_event_models.py +0 -0
  208. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/fine_tuning_job_models.py +0 -0
  209. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/list_fine_tuning_checkpoints.py +0 -0
  210. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/list_fine_tuning_events.py +0 -0
  211. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/list_fine_tuning_jobs.py +0 -0
  212. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/retrieve_jobs.py +0 -0
  213. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/fine_tuning/training_format.py +0 -0
  214. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/images/__init__.py +0 -0
  215. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/images/image_edit_models.py +0 -0
  216. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/images/image_models.py +0 -0
  217. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/images/image_variation_models.py +0 -0
  218. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/images/response_body.py +0 -0
  219. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/match_data_model.py +0 -0
  220. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/match_response.py +0 -0
  221. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/models/__init__.py +0 -0
  222. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/models/delete_fine_tuned_model.py +0 -0
  223. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/models/models_models.py +0 -0
  224. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/models/retrieve_model.py +0 -0
  225. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/moderations/__init__.py +0 -0
  226. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/moderations/request_body.py +0 -0
  227. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/moderations/response_body.py +0 -0
  228. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/uploads/__init__.py +0 -0
  229. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/uploads/add_upload_part.py +0 -0
  230. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/uploads/cancel_upload.py +0 -0
  231. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/uploads/complete_upload.py +0 -0
  232. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/uploads/create_upload.py +0 -0
  233. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/api_endpoints/uploads/uploads_models.py +0 -0
  234. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/image_token_calculator/__init__.py +0 -0
  235. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/image_token_calculator/image_token_calculator.py +0 -0
  236. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/image_token_calculator/openai_image_token_data.yaml +0 -0
  237. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/openai_max_output_token_data.yaml +0 -0
  238. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/openai_/openai_price_data.yaml +0 -0
  239. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/__init__.py +0 -0
  240. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/extend_df.py +0 -0
  241. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/read.py +0 -0
  242. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/remove_rows.py +0 -0
  243. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/replace_keywords.py +0 -0
  244. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/save.py +0 -0
  245. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/search_keywords.py +0 -0
  246. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/to_df.py +0 -0
  247. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pandas_/update_cells.py +0 -0
  248. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/PerplexityModel.py +0 -0
  249. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/__init__.py +0 -0
  250. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/__init__.py +0 -0
  251. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/api_request.py +0 -0
  252. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/chat_completions/__init__.py +0 -0
  253. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/chat_completions/request/__init__.py +0 -0
  254. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/chat_completions/request/request_body.py +0 -0
  255. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/chat_completions/response/__init__.py +0 -0
  256. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/chat_completions/response/response_body.py +0 -0
  257. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/data_models.py +0 -0
  258. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/api_endpoints/match_response.py +0 -0
  259. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/perplexity_max_output_token_data.yaml +0 -0
  260. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/perplexity_/perplexity_price_data.yaml +0 -0
  261. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pydantic_/__init__.py +0 -0
  262. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pydantic_/break_down_annotation.py +0 -0
  263. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/integrations/pydantic_/new_model.py +0 -0
  264. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/__init__.py +0 -0
  265. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/compress/__init__.py +0 -0
  266. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/compress/models.py +0 -0
  267. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/compress/utils.py +0 -0
  268. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/constants.py +0 -0
  269. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/__init__.py +0 -0
  270. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/chunk.py +0 -0
  271. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/file_ops.py +0 -0
  272. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/params.py +0 -0
  273. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/path.py +0 -0
  274. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/process.py +0 -0
  275. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/save.py +0 -0
  276. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/file/types.py +0 -0
  277. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/__init__.py +0 -0
  278. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/__init__.py +0 -0
  279. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/bcall.py +0 -0
  280. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/mcall.py +0 -0
  281. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/pcall.py +0 -0
  282. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/rcall.py +0 -0
  283. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/tcall.py +0 -0
  284. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/async_calls/ucall.py +0 -0
  285. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/decorators.py +0 -0
  286. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/lcall.py +0 -0
  287. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/params.py +0 -0
  288. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/throttle.py +0 -0
  289. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/types.py +0 -0
  290. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/func/utils.py +0 -0
  291. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/package/__init__.py +0 -0
  292. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/package/imports.py +0 -0
  293. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/package/management.py +0 -0
  294. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/package/params.py +0 -0
  295. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/package/system.py +0 -0
  296. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/package/types.py +0 -0
  297. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/__init__.py +0 -0
  298. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/flatten/__init__.py +0 -0
  299. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/flatten/flatten.py +0 -0
  300. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/flatten/params.py +0 -0
  301. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/flatten/unflatten.py +0 -0
  302. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/json/__init__.py +0 -0
  303. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/json/as_readable.py +0 -0
  304. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/json/extract.py +0 -0
  305. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/json/parse.py +0 -0
  306. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/json/schema.py +0 -0
  307. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/json/to_json.py +0 -0
  308. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/__init__.py +0 -0
  309. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/nfilter.py +0 -0
  310. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/nget.py +0 -0
  311. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/ninsert.py +0 -0
  312. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/nmerge.py +0 -0
  313. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/npop.py +0 -0
  314. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/nset.py +0 -0
  315. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/to_flat_list.py +0 -0
  316. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/nested/utils.py +0 -0
  317. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/params.py +0 -0
  318. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/string_parse/__init__.py +0 -0
  319. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/string_parse/code_block.py +0 -0
  320. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/string_parse/docstring.py +0 -0
  321. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/string_parse/function_.py +0 -0
  322. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/type_convert/__init__.py +0 -0
  323. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/type_convert/params.py +0 -0
  324. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/type_convert/to_dict.py +0 -0
  325. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/type_convert/to_list.py +0 -0
  326. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/type_convert/to_num.py +0 -0
  327. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/type_convert/to_str.py +0 -0
  328. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/types.py +0 -0
  329. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/validate/__init__.py +0 -0
  330. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/validate/boolean.py +0 -0
  331. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/validate/keys.py +0 -0
  332. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/validate/mapping.py +0 -0
  333. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/validate/params.py +0 -0
  334. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/xml/__init__.py +0 -0
  335. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/xml/convert.py +0 -0
  336. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/parse/xml/parser.py +0 -0
  337. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/string_similarity/__init__.py +0 -0
  338. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/string_similarity/algorithms.py +0 -0
  339. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/string_similarity/matcher.py +0 -0
  340. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/string_similarity/utils.py +0 -0
  341. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/libs/utils.py +0 -0
  342. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/__init__.py +0 -0
  343. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/brainstorm/__init__.py +0 -0
  344. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/brainstorm/prompt.py +0 -0
  345. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/plan/__init__.py +0 -0
  346. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/plan/prompt.py +0 -0
  347. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/select/__init__.py +0 -0
  348. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/select/prompt.py +0 -0
  349. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/select/select.py +0 -0
  350. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/select/utils.py +0 -0
  351. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/operations/utils.py +0 -0
  352. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/__init__.py +0 -0
  353. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/adapters/__init__.py +0 -0
  354. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/adapters/adapter.py +0 -0
  355. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/adapters/json_adapter.py +0 -0
  356. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/adapters/pandas_adapter.py +0 -0
  357. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/__init__.py +0 -0
  358. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/branch_config.py +0 -0
  359. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/id_config.py +0 -0
  360. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/imodel_config.py +0 -0
  361. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/log_config.py +0 -0
  362. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/retry_config.py +0 -0
  363. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/configs/types.py +0 -0
  364. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/__init__.py +0 -0
  365. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/action.py +0 -0
  366. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/instruct.py +0 -0
  367. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/operative.py +0 -0
  368. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/prompts.py +0 -0
  369. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/reason.py +0 -0
  370. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/step.py +0 -0
  371. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/operatives/types.py +0 -0
  372. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/registries/__init__.py +0 -0
  373. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/registries/_component_registry.py +0 -0
  374. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/protocols/registries/_pile_registry.py +0 -0
  375. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/__init__.py +0 -0
  376. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/complete_request_info.py +0 -0
  377. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/rate_limiter.py +0 -0
  378. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/service.py +0 -0
  379. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/service_match_util.py +0 -0
  380. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/service_util.py +0 -0
  381. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/service/token_calculator.py +0 -0
  382. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/settings.py +0 -0
  383. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/__init__.py +0 -0
  384. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/base.py +0 -0
  385. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/concurrent.py +0 -0
  386. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/concurrent_chunk.py +0 -0
  387. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/concurrent_sequential_chunk.py +0 -0
  388. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/params.py +0 -0
  389. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/sequential.py +0 -0
  390. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/sequential_chunk.py +0 -0
  391. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/sequential_concurrent_chunk.py +0 -0
  392. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/types.py +0 -0
  393. {lionagi-0.5.3 → lionagi-0.5.5}/lionagi/strategies/utils.py +0 -0
@@ -3,4 +3,4 @@
3
3
  # OPENAI_API_KEY=
4
4
  # ANTHROPIC_API_KEY=
5
5
  # PERPLEXITY_API_KEY=
6
- # GROK_API_KEY=
6
+ # GROQ_API_KEY=
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lionagi
3
- Version: 0.5.3
3
+ Version: 0.5.5
4
4
  Summary: An AGentic Intelligence Operating System.
5
5
  Author-email: HaiyangLi <quantocean.li@gmail.com>
6
6
  License: Apache License
@@ -253,6 +253,8 @@ class ActionManager:
253
253
  ValueError: If a specified tool is not registered.
254
254
  TypeError: If an unsupported tool type is provided.
255
255
  """
256
+ if isinstance(tools, list | tuple) and len(tools) == 1:
257
+ tools = tools[0]
256
258
  if isinstance(tools, bool):
257
259
  if tools:
258
260
  tool_kwarg = {"tools": self.schema_list}
@@ -146,6 +146,16 @@ class AssistantResponse(RoledMessage):
146
146
  """
147
147
  return copy(self.content["assistant_response"])
148
148
 
149
+ @response.setter
150
+ def response(self, value: str) -> None:
151
+ """
152
+ Set the assistant response content.
153
+
154
+ Args:
155
+ value: The new response content
156
+ """
157
+ self.content["assistant_response"] = value
158
+
149
159
  @property
150
160
  def model_response(self) -> dict | list[dict]:
151
161
  """
@@ -68,7 +68,7 @@ class MessageField(str, Enum):
68
68
  LION_CLASS = "lion_class"
69
69
  ROLE = "role"
70
70
  CONTENT = "content"
71
- id = "id"
71
+ LN_ID = "ln_id"
72
72
  SENDER = "sender"
73
73
  RECIPIENT = "recipient"
74
74
  METADATA = "metadata"
@@ -498,6 +498,19 @@ class MessageManager:
498
498
  ]
499
499
  )
500
500
 
501
+ def remove_last_instruction_tool_schemas(self) -> None:
502
+ id_ = self.last_instruction.ln_id
503
+ self.messages[id_].tool_schemas = None
504
+
505
+ def concat_recent_action_responses_to_instruction(
506
+ self, instruction: Instruction
507
+ ) -> None:
508
+ for i in reversed(self.messages.progress):
509
+ if isinstance(self.messages[i], ActionResponse):
510
+ instruction.context.append(self.messages[i].content.to_dict())
511
+ else:
512
+ break
513
+
501
514
  def to_chat_msgs(self, progress=None) -> list[dict]:
502
515
  """
503
516
  Convert messages to chat format.
@@ -92,9 +92,11 @@ def format_text_item(item: Any) -> str:
92
92
  for j in item:
93
93
  if isinstance(j, dict):
94
94
  for k, v in j.items():
95
- msg += f"- {k}: {v} \n\n"
95
+ if v is not None:
96
+ msg += f"- {k}: {v} \n\n"
96
97
  else:
97
- msg += f"{j}\n"
98
+ if j is not None:
99
+ msg += f"{j}\n"
98
100
  return msg
99
101
 
100
102
 
@@ -33,6 +33,7 @@ from ..communication.types import (
33
33
  ActionResponse,
34
34
  AssistantResponse,
35
35
  Instruction,
36
+ RoledMessage,
36
37
  )
37
38
 
38
39
 
@@ -149,6 +150,8 @@ class BranchOperationMixin(ABC):
149
150
  if auto_retry_parse is True:
150
151
  operative.auto_retry_parse = True
151
152
 
153
+ if actions:
154
+ tools = tools or True
152
155
  if invoke_actions and tools:
153
156
  tool_schemas = self.get_tool_schema(tools)
154
157
 
@@ -275,7 +278,7 @@ class BranchOperationMixin(ABC):
275
278
  **kwargs,
276
279
  ) -> tuple[Instruction, AssistantResponse]:
277
280
 
278
- ins = self.msgs.create_instruction(
281
+ ins: Instruction = self.msgs.create_instruction(
279
282
  instruction=instruction,
280
283
  guidance=guidance,
281
284
  context=context,
@@ -289,7 +292,57 @@ class BranchOperationMixin(ABC):
289
292
  )
290
293
 
291
294
  progress = progress or self.msgs.progress
292
- messages = [self.msgs.messages[i] for i in progress]
295
+ messages: list[RoledMessage] = [
296
+ self.msgs.messages[i] for i in progress
297
+ ]
298
+
299
+ use_ins = None
300
+ if imodel.sequential_exchange:
301
+ _to_use = []
302
+ _action_responses: set[ActionResponse] = set()
303
+
304
+ for i in messages:
305
+ if isinstance(i, ActionResponse):
306
+ _action_responses.add(i)
307
+ if isinstance(i, AssistantResponse):
308
+ _to_use.append(i.model_copy())
309
+ if isinstance(i, Instruction):
310
+ if _action_responses:
311
+ j = i.model_copy()
312
+ d_ = [k.content.to_dict() for k in _action_responses]
313
+ for z in d_:
314
+ if z not in j.context:
315
+ j.context.append(z)
316
+
317
+ _to_use.append(j)
318
+ _action_responses = set()
319
+ else:
320
+ _to_use.append(i)
321
+
322
+ messages = _to_use
323
+ if _action_responses:
324
+ j = ins.model_copy()
325
+ d_ = [k.content.to_dict() for k in _action_responses]
326
+ for z in d_:
327
+ if z not in j.context:
328
+ j.context.append(z)
329
+ use_ins = j
330
+
331
+ if messages and len(messages) > 1:
332
+ _msgs = [messages[0]]
333
+
334
+ for i in messages[1:]:
335
+ if isinstance(i, AssistantResponse):
336
+ if isinstance(_msgs[-1], AssistantResponse):
337
+ _msgs[-1].response = (
338
+ f"{_msgs[-1].response}\n\n{i.response}"
339
+ )
340
+ else:
341
+ _msgs.append(i)
342
+ else:
343
+ if isinstance(_msgs[-1], AssistantResponse):
344
+ _msgs.append(i)
345
+ messages = _msgs
293
346
 
294
347
  if self.msgs.system and "system" not in imodel.allowed_roles:
295
348
  messages = [msg for msg in messages if msg.role != "system"]
@@ -312,9 +365,10 @@ class BranchOperationMixin(ABC):
312
365
  first_instruction.guidance or ""
313
366
  )
314
367
  messages[0] = first_instruction
368
+ messages.append(use_ins or ins)
315
369
 
316
370
  else:
317
- messages.append(ins)
371
+ messages.append(use_ins or ins)
318
372
 
319
373
  kwargs["messages"] = [i.chat_msg for i in messages]
320
374
  imodel = imodel or self.imodel
@@ -331,6 +385,7 @@ class BranchOperationMixin(ABC):
331
385
  sender=self,
332
386
  recipient=self.user,
333
387
  )
388
+
334
389
  return ins, res
335
390
 
336
391
  async def communicate(
@@ -346,7 +401,6 @@ class BranchOperationMixin(ABC):
346
401
  imodel: iModel = None,
347
402
  images: list = None,
348
403
  image_detail: Literal["low", "high", "auto"] = None,
349
- tools: str | FUNCTOOL | list[FUNCTOOL | str] | bool = None,
350
404
  num_parse_retries: int = 0,
351
405
  retry_imodel: iModel = None,
352
406
  retry_kwargs: dict = {},
@@ -355,7 +409,6 @@ class BranchOperationMixin(ABC):
355
409
  ] = "return_value",
356
410
  skip_validation: bool = False,
357
411
  clear_messages: bool = False,
358
- invoke_action: bool = True,
359
412
  response_format: (
360
413
  type[BaseModel] | BaseModel
361
414
  ) = None, # alias of request_model
@@ -380,10 +433,6 @@ class BranchOperationMixin(ABC):
380
433
  )
381
434
  num_parse_retries = 5
382
435
 
383
- tool_schemas = None
384
- if invoke_action and tools:
385
- tool_schemas = self.get_tool_schema(tools)
386
-
387
436
  ins, res = await self._invoke_imodel(
388
437
  instruction=instruction,
389
438
  guidance=guidance,
@@ -395,36 +444,14 @@ class BranchOperationMixin(ABC):
395
444
  imodel=imodel,
396
445
  images=images,
397
446
  image_detail=image_detail,
398
- tool_schemas=tool_schemas,
399
447
  **kwargs,
400
448
  )
401
- await self.msgs.a_add_message(instruction=ins)
402
- await self.msgs.a_add_message(assistant_response=res)
403
-
404
- action_request_models = None
405
- action_response_models = None
449
+ self.msgs.add_message(instruction=ins)
450
+ self.msgs.add_message(assistant_response=res)
406
451
 
407
452
  if skip_validation:
408
453
  return res.response
409
454
 
410
- if invoke_action and tools:
411
- action_request_models = ActionRequestModel.create(res.response)
412
-
413
- if action_request_models and invoke_action:
414
- action_response_models = await alcall(
415
- action_request_models,
416
- self.invoke_action,
417
- suppress_errors=True,
418
- )
419
-
420
- if action_request_models and not action_response_models:
421
- for i in action_request_models:
422
- await self.msgs.a_add_message(
423
- action_request_model=i,
424
- sender=self,
425
- recipient=None,
426
- )
427
-
428
455
  _d = None
429
456
  if request_fields is not None or request_model is not None:
430
457
  parse_success = None
@@ -475,9 +502,12 @@ class BranchOperationMixin(ABC):
475
502
  if _d and isinstance(_d, dict):
476
503
  parse_success = True
477
504
  if res not in self.msgs.messages:
478
- await self.msgs.a_add_message(
479
- assistant_response=res
480
- )
505
+ if isinstance(
506
+ self.msgs.messages[-1], AssistantResponse
507
+ ):
508
+ self.msgs.messages[-1].response = res.response
509
+ else:
510
+ self.msgs.add_message(assistant_response=res)
481
511
  return _d
482
512
 
483
513
  elif request_model:
@@ -495,9 +525,16 @@ class BranchOperationMixin(ABC):
495
525
  _d = request_model.model_validate(_d)
496
526
  parse_success = True
497
527
  if res not in self.msgs.messages:
498
- await self.msgs.a_add_message(
499
- assistant_response=res
500
- )
528
+ if isinstance(
529
+ self.msgs.messages[-1], AssistantResponse
530
+ ):
531
+ self.msgs.messages[-1].response = (
532
+ res.response
533
+ )
534
+ else:
535
+ self.msgs.add_message(
536
+ assistant_response=res
537
+ )
501
538
  return _d
502
539
  except Exception as e:
503
540
  logging.warning(
@@ -128,9 +128,9 @@ class Session(Component):
128
128
  branch: The branch to set as default or its identifier.
129
129
  """
130
130
  branch = self.branches[branch]
131
- if branch and len(branch) == 1:
132
- self.default_branch = branch
133
- raise ValueError("Session can only have one default branch.")
131
+ if not isinstance(branch, Branch):
132
+ raise ValueError("Input value for branch is not a valid branch.")
133
+ self.default_branch = branch
134
134
 
135
135
  def to_df(self, branches: ID.RefSeq = None) -> pd.DataFrame:
136
136
  out = self.concat_messages(branches=branches)
@@ -4,6 +4,7 @@
4
4
 
5
5
  from pathlib import Path
6
6
 
7
+ import yaml
7
8
  from dotenv import load_dotenv
8
9
  from pydantic import (
9
10
  BaseModel,
@@ -33,12 +34,6 @@ price_config_file_name = path / "anthropic_price_data.yaml"
33
34
  max_output_token_file_name = path / "anthropic_max_output_token_data.yaml"
34
35
 
35
36
 
36
- class _ModuleImportClass:
37
- from lionagi.libs.package.imports import check_import
38
-
39
- yaml = check_import("yaml", pip_name="pyyaml")
40
-
41
-
42
37
  class AnthropicModel(BaseModel):
43
38
  model: str = Field(description="ID of the model to use.")
44
39
 
@@ -239,7 +234,7 @@ class AnthropicModel(BaseModel):
239
234
  )
240
235
  if estimated_output_len == 0:
241
236
  with open(max_output_token_file_name) as file:
242
- output_token_config = _ModuleImportClass.yaml.safe_load(file)
237
+ output_token_config = yaml.safe_load(file)
243
238
  estimated_output_len = output_token_config.get(self.model, 0)
244
239
  self.estimated_output_len = estimated_output_len
245
240
 
@@ -261,13 +256,13 @@ class AnthropicModel(BaseModel):
261
256
  num_of_input_tokens = self.text_token_calculator.calculate(input_text)
262
257
 
263
258
  with open(price_config_file_name) as file:
264
- price_config = _ModuleImportClass.yaml.safe_load(file)
259
+ price_config = yaml.safe_load(file)
265
260
 
266
261
  model_price_info_dict = price_config["model"][self.model]
267
262
  estimated_price = (
268
263
  model_price_info_dict["input_tokens"] * num_of_input_tokens
269
264
  + model_price_info_dict["output_tokens"]
270
265
  * estimated_num_of_output_tokens
271
- )
266
+ ) / 1_000_000
272
267
 
273
268
  return estimated_price
@@ -51,6 +51,11 @@ class AnthropicService(Service):
51
51
  # Map model versions to their base models for shared rate limiting
52
52
  shared_models = {
53
53
  "claude-3-opus-20240229": "claude-3-opus",
54
+ "claude-3-sonnet-20241022": "claude-3-sonnet",
55
+ "claude-3-haiku-20241022": "claude-3-haiku",
56
+ "claude-3-opus-latest": "claude-3-opus",
57
+ "claude-3-sonnet-latest": "claude-3-sonnet",
58
+ "claude-3-haiku-latest": "claude-3-haiku",
54
59
  "claude-3-sonnet-20240229": "claude-3-sonnet",
55
60
  "claude-3-haiku-20240307": "claude-3-haiku",
56
61
  }
@@ -115,3 +120,8 @@ class AnthropicService(Service):
115
120
  @property
116
121
  def allowed_roles(self):
117
122
  return ["user", "assistant"]
123
+
124
+ @property
125
+ def sequential_exchange(self):
126
+ """whether the service requires user/assistant exchange"""
127
+ return True
@@ -2,6 +2,11 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Apache-2.0
4
4
 
5
+ claude-3-5-sonnet-20241022: 8192 # Latest model
6
+ claude-3-5-haiku-20241022: 8192 # Latest model
5
7
  claude-3-opus-20240229: 4096
6
8
  claude-3-sonnet-20240229: 4096
7
9
  claude-3-haiku-20240307: 4096
10
+ claude-2.1: 4096
11
+ claude-2.0: 4096
12
+ claude-instant-1.2: 4096
@@ -0,0 +1,34 @@
1
+ # Copyright (c) 2023 - 2024, HaiyangLi <quantocean.li at gmail dot com>
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ model:
6
+ # Latest Models (3.5 series)
7
+ claude-3-5-sonnet-20241022:
8
+ input_tokens: 3.0
9
+ output_tokens: 15.0
10
+ claude-3-5-haiku-20241022:
11
+ input_tokens: 0.80
12
+ output_tokens: 4.0
13
+
14
+ # Claude 3 Models
15
+ claude-3-opus-20240229:
16
+ input_tokens: 15.0
17
+ output_tokens: 75.0
18
+ claude-3-sonnet-20240229:
19
+ input_tokens: 3.0
20
+ output_tokens: 15.0
21
+ claude-3-haiku-20240307:
22
+ input_tokens: 0.25
23
+ output_tokens: 1.25
24
+
25
+ # Legacy Models
26
+ claude-2.1:
27
+ input_tokens: 8.0
28
+ output_tokens: 24.0
29
+ claude-2.0:
30
+ input_tokens: 8.0
31
+ output_tokens: 24.0
32
+ claude-instant-1.2:
33
+ input_tokens: 0.8
34
+ output_tokens: 2.4
@@ -2,4 +2,4 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Apache-2.0
4
4
 
5
- __version__ = "1.0.0"
5
+ __version__ = "1.0.1"
@@ -149,3 +149,8 @@ class GroqService(Service):
149
149
  @property
150
150
  def allowed_roles(self):
151
151
  return ["user", "assistant", "system"]
152
+
153
+ @property
154
+ def sequential_exchange(self):
155
+ """whether the service requires user/assistant exchange"""
156
+ return True
@@ -2,4 +2,4 @@
2
2
  #
3
3
  # SPDX-License-Identifier: Apache-2.0
4
4
 
5
- __version__ = "1.0.0"
5
+ __version__ = "1.0.1"
@@ -69,3 +69,8 @@ class LiteiModel:
69
69
  @property
70
70
  def allowed_roles(self):
71
71
  return ["user", "assistant", "system"]
72
+
73
+ @property
74
+ def sequential_exchange(self):
75
+ """whether the service requires user/assistant exchange"""
76
+ return False
@@ -417,7 +417,3 @@ class OpenAIModel(BaseModel):
417
417
  "Estimating price currently only supports chat/completions endpoint"
418
418
  )
419
419
  return estimated_price
420
-
421
- @property
422
- def allowed_roles(self):
423
- return ["user", "assistant", "system"]
@@ -424,3 +424,12 @@ class OpenAIService(Service):
424
424
  method="POST",
425
425
  content_type="application/json",
426
426
  )
427
+
428
+ @property
429
+ def allowed_roles(self):
430
+ return ["user", "assistant", "system"]
431
+
432
+ @property
433
+ def sequential_exchange(self):
434
+ """whether the service requires user/assistant exchange"""
435
+ return False
@@ -0,0 +1 @@
1
+ __version__ = "1.0.3"
@@ -111,3 +111,8 @@ class PerplexityService(Service):
111
111
  @property
112
112
  def allowed_roles(self):
113
113
  return ["user", "assistant", "system"]
114
+
115
+ @property
116
+ def sequential_exchange(self):
117
+ """whether the service requires user/assistant exchange"""
118
+ return True
@@ -0,0 +1 @@
1
+ __version__ = "1.0.1"
@@ -148,6 +148,13 @@ async def alcall(
148
148
  ucall(func, i, **kwargs), retry_timeout
149
149
  )
150
150
  return index, result
151
+
152
+ except InterruptedError:
153
+ return index, None
154
+
155
+ except asyncio.CancelledError:
156
+ return index, None
157
+
151
158
  except TimeoutError as e:
152
159
  raise TimeoutError(
153
160
  f"{error_msg or ''} Timeout {retry_timeout} seconds "