lionagi 0.5.5__tar.gz → 0.6.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {lionagi-0.5.5 → lionagi-0.6.1}/.env.example +1 -1
- {lionagi-0.5.5 → lionagi-0.6.1}/.github/workflows/ci.yml +1 -1
- lionagi-0.6.1/.github/workflows/docs.yml +34 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/.github/workflows/release.yml +1 -1
- {lionagi-0.5.5 → lionagi-0.6.1}/PKG-INFO +10 -9
- {lionagi-0.5.5 → lionagi-0.6.1}/README.md +3 -3
- lionagi-0.6.1/dev_tools/count_code_base_lines.py +113 -0
- lionagi-0.6.1/docs/Makefile +20 -0
- lionagi-0.6.1/docs/_static/custom.css +59 -0
- lionagi-0.6.1/docs/_templates/layout.html +34 -0
- lionagi-0.6.1/docs/conf.py +56 -0
- lionagi-0.6.1/docs/index.rst +35 -0
- lionagi-0.6.1/docs/modules/action.rst +339 -0
- lionagi-0.6.1/docs/modules/adapter.rst +241 -0
- lionagi-0.6.1/docs/modules/branch.rst +215 -0
- lionagi-0.6.1/docs/modules/concepts.rst +214 -0
- lionagi-0.6.1/docs/modules/event.rst +38 -0
- lionagi-0.6.1/docs/modules/form.rst +184 -0
- lionagi-0.6.1/docs/modules/graph.rst +238 -0
- lionagi-0.6.1/docs/modules/index.rst +35 -0
- lionagi-0.6.1/docs/modules/instruct.rst +222 -0
- lionagi-0.6.1/docs/modules/lib_file.rst +246 -0
- lionagi-0.6.1/docs/modules/lib_nested.rst +297 -0
- lionagi-0.6.1/docs/modules/lib_package.rst +153 -0
- lionagi-0.6.1/docs/modules/lib_schema.rst +232 -0
- lionagi-0.6.1/docs/modules/lib_validate.rst +239 -0
- lionagi-0.6.1/docs/modules/mail.rst +303 -0
- lionagi-0.6.1/docs/modules/message.rst +295 -0
- lionagi-0.6.1/docs/modules/models.rst +221 -0
- lionagi-0.6.1/docs/modules/operations.rst +111 -0
- lionagi-0.6.1/docs/modules/operative_step.rst +169 -0
- lionagi-0.6.1/docs/modules/pile_progression.rst +324 -0
- lionagi-0.6.1/docs/modules/service.rst +240 -0
- lionagi-0.6.1/docs/modules/session.rst +193 -0
- lionagi-0.6.1/docs/modules/strategies.rst +140 -0
- lionagi-0.6.1/docs/modules/utils.rst +351 -0
- lionagi-0.6.1/docs/operations/core_operations.rst +23 -0
- lionagi-0.6.1/docs/operations/index.rst +13 -0
- lionagi-0.6.1/docs/operations/strategies.rst +37 -0
- lionagi-0.6.1/docs/tutorials/get_started.rst +231 -0
- lionagi-0.6.1/docs/tutorials/get_started_pt2.rst +294 -0
- lionagi-0.6.1/docs/tutorials/get_started_pt3.rst +190 -0
- lionagi-0.6.1/docs/tutorials/index.rst +14 -0
- lionagi-0.6.1/lionagi/__init__.py +23 -0
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi}/_class_registry.py +51 -10
- lionagi-0.6.1/lionagi/_errors.py +35 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/compress/models.py +6 -2
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/compress/utils.py +4 -16
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/file/chunk.py +4 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/file/file_ops.py +4 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/file/params.py +4 -41
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/file/process.py +4 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/file/save.py +5 -1
- {lionagi-0.5.5/lionagi/libs/parse/flatten → lionagi-0.6.1/lionagi/libs/nested}/flatten.py +4 -0
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/nfilter.py +4 -0
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/nget.py +6 -1
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/ninsert.py +5 -1
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/nmerge.py +4 -0
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/npop.py +5 -2
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/nset.py +6 -1
- {lionagi-0.5.5/lionagi/libs/parse/flatten → lionagi-0.6.1/lionagi/libs/nested}/unflatten.py +4 -0
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/libs}/nested/utils.py +5 -1
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/package/imports.py +6 -2
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/package/management.py +7 -3
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/package/params.py +4 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/libs/package/system.py +4 -0
- lionagi-0.6.1/lionagi/libs/parse.py +30 -0
- {lionagi-0.5.5/lionagi/libs/parse/json → lionagi-0.6.1/lionagi/libs/schema}/as_readable.py +10 -4
- lionagi-0.5.5/lionagi/libs/parse/string_parse/code_block.py → lionagi-0.6.1/lionagi/libs/schema/extract_code_block.py +4 -0
- lionagi-0.5.5/lionagi/libs/parse/string_parse/docstring.py → lionagi-0.6.1/lionagi/libs/schema/extract_docstring.py +4 -0
- lionagi-0.5.5/lionagi/libs/parse/string_parse/function_.py → lionagi-0.6.1/lionagi/libs/schema/function_to_schema.py +21 -9
- lionagi-0.5.5/lionagi/libs/parse/json/schema.py → lionagi-0.6.1/lionagi/libs/schema/json_schema.py +5 -1
- lionagi-0.6.1/lionagi/libs/validate/common_field_validators.py +170 -0
- lionagi-0.5.5/lionagi/libs/parse/validate/keys.py → lionagi-0.6.1/lionagi/libs/validate/fuzzy_match_keys.py +42 -8
- lionagi-0.5.5/lionagi/libs/parse/validate/mapping.py → lionagi-0.6.1/lionagi/libs/validate/fuzzy_validate_mapping.py +41 -6
- lionagi-0.5.5/lionagi/libs/string_similarity/algorithms.py → lionagi-0.6.1/lionagi/libs/validate/string_similarity.py +115 -1
- lionagi-0.5.5/lionagi/libs/parse/validate/boolean.py → lionagi-0.6.1/lionagi/libs/validate/validate_boolean.py +42 -3
- lionagi-0.6.1/lionagi/operations/__init__.py +13 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/brainstorm/brainstorm.py +33 -19
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/brainstorm/prompt.py +4 -0
- {lionagi-0.5.5/lionagi/core/models → lionagi-0.6.1/lionagi/operations/plan}/__init__.py +3 -1
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/plan/plan.py +19 -16
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/plan/prompt.py +4 -0
- lionagi-0.5.5/lionagi/integrations/anthropic_/version.py → lionagi-0.6.1/lionagi/operations/select/__init__.py +3 -1
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/select/prompt.py +4 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/select/select.py +2 -2
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/select/utils.py +4 -4
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/base.py +6 -2
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/concurrent.py +8 -5
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/concurrent_chunk.py +6 -3
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/concurrent_sequential_chunk.py +8 -4
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/params.py +26 -6
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/sequential.py +6 -2
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/sequential_chunk.py +7 -3
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/sequential_concurrent_chunk.py +9 -4
- {lionagi-0.5.5/lionagi → lionagi-0.6.1/lionagi/operations}/strategies/utils.py +6 -3
- lionagi-0.6.1/lionagi/operations/types.py +13 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/operations/utils.py +6 -3
- lionagi-0.6.1/lionagi/operatives/action/function_calling.py +136 -0
- lionagi-0.6.1/lionagi/operatives/action/manager.py +236 -0
- lionagi-0.6.1/lionagi/operatives/action/request_response_model.py +90 -0
- lionagi-0.6.1/lionagi/operatives/action/tool.py +141 -0
- lionagi-0.5.5/lionagi/protocols/operatives/action.py → lionagi-0.6.1/lionagi/operatives/action/utils.py +52 -90
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/forms/base.py +9 -4
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/forms/form.py +8 -13
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/forms/report.py +5 -3
- lionagi-0.6.1/lionagi/operatives/instruct/base.py +79 -0
- lionagi-0.6.1/lionagi/operatives/instruct/instruct.py +105 -0
- lionagi-0.6.1/lionagi/operatives/instruct/instruct_collection.py +52 -0
- lionagi-0.6.1/lionagi/operatives/instruct/node.py +13 -0
- {lionagi-0.5.5/lionagi/protocols/operatives → lionagi-0.6.1/lionagi/operatives/instruct}/prompts.py +0 -34
- {lionagi-0.5.5/lionagi/protocols/operatives → lionagi-0.6.1/lionagi/operatives/instruct}/reason.py +14 -7
- lionagi-0.5.5/lionagi/integrations/groq_/version.py → lionagi-0.6.1/lionagi/operatives/manager.py +5 -1
- lionagi-0.6.1/lionagi/operatives/models/field_model.py +194 -0
- lionagi-0.6.1/lionagi/operatives/models/model_params.py +307 -0
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/models/note.py +20 -28
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/models/operable_model.py +153 -71
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/models/schema_model.py +4 -3
- {lionagi-0.5.5/lionagi/protocols → lionagi-0.6.1/lionagi}/operatives/operative.py +10 -7
- {lionagi-0.5.5/lionagi/protocols → lionagi-0.6.1/lionagi}/operatives/step.py +67 -26
- lionagi-0.6.1/lionagi/operatives/types.py +69 -0
- lionagi-0.6.1/lionagi/protocols/_concepts.py +94 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/lionagi/protocols/adapters/adapter.py +23 -7
- lionagi-0.6.1/lionagi/protocols/adapters/json_adapter.py +101 -0
- lionagi-0.6.1/lionagi/protocols/adapters/pandas_/csv_adapter.py +50 -0
- lionagi-0.6.1/lionagi/protocols/adapters/pandas_/excel_adapter.py +52 -0
- lionagi-0.6.1/lionagi/protocols/adapters/pandas_/pd_dataframe_adapter.py +31 -0
- lionagi-0.6.1/lionagi/protocols/adapters/pandas_/pd_series_adapter.py +17 -0
- lionagi-0.6.1/lionagi/protocols/adapters/types.py +18 -0
- lionagi-0.6.1/lionagi/protocols/generic/element.py +460 -0
- lionagi-0.6.1/lionagi/protocols/generic/event.py +177 -0
- lionagi-0.6.1/lionagi/protocols/generic/log.py +237 -0
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/protocols}/generic/pile.py +193 -131
- lionagi-0.6.1/lionagi/protocols/generic/processor.py +316 -0
- lionagi-0.6.1/lionagi/protocols/generic/progression.py +500 -0
- lionagi-0.6.1/lionagi/protocols/graph/edge.py +166 -0
- lionagi-0.6.1/lionagi/protocols/graph/graph.py +290 -0
- lionagi-0.6.1/lionagi/protocols/graph/node.py +125 -0
- lionagi-0.6.1/lionagi/protocols/mail/exchange.py +116 -0
- lionagi-0.6.1/lionagi/protocols/mail/mail.py +25 -0
- lionagi-0.6.1/lionagi/protocols/mail/mailbox.py +47 -0
- lionagi-0.6.1/lionagi/protocols/mail/manager.py +168 -0
- lionagi-0.6.1/lionagi/protocols/mail/package.py +55 -0
- lionagi-0.6.1/lionagi/protocols/messages/action_request.py +165 -0
- lionagi-0.6.1/lionagi/protocols/messages/action_response.py +132 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/assistant_response.py +55 -79
- lionagi-0.6.1/lionagi/protocols/messages/base.py +73 -0
- lionagi-0.6.1/lionagi/protocols/messages/instruction.py +582 -0
- lionagi-0.6.1/lionagi/protocols/messages/manager.py +429 -0
- lionagi-0.6.1/lionagi/protocols/messages/message.py +216 -0
- lionagi-0.6.1/lionagi/protocols/messages/system.py +115 -0
- lionagi-0.6.1/lionagi/protocols/messages/templates/assistant_response.jinja2 +6 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/templates/instruction_message.jinja2 +2 -2
- lionagi-0.6.1/lionagi/protocols/types.py +96 -0
- lionagi-0.6.1/lionagi/service/endpoints/base.py +517 -0
- lionagi-0.6.1/lionagi/service/endpoints/chat_completion.py +102 -0
- lionagi-0.6.1/lionagi/service/endpoints/match_endpoint.py +60 -0
- lionagi-0.6.1/lionagi/service/endpoints/rate_limited_processor.py +146 -0
- lionagi-0.6.1/lionagi/service/endpoints/token_calculator.py +209 -0
- lionagi-0.6.1/lionagi/service/imodel.py +297 -0
- lionagi-0.6.1/lionagi/service/manager.py +45 -0
- lionagi-0.6.1/lionagi/service/providers/__init__.py +3 -0
- lionagi-0.6.1/lionagi/service/providers/anthropic_/__init__.py +3 -0
- lionagi-0.6.1/lionagi/service/providers/anthropic_/messages.py +64 -0
- lionagi-0.6.1/lionagi/service/providers/groq_/__init__.py +3 -0
- lionagi-0.6.1/lionagi/service/providers/groq_/chat_completions.py +56 -0
- lionagi-0.6.1/lionagi/service/providers/openai_/__init__.py +3 -0
- lionagi-0.6.1/lionagi/service/providers/openai_/chat_completions.py +62 -0
- lionagi-0.6.1/lionagi/service/providers/openrouter_/__init__.py +3 -0
- lionagi-0.6.1/lionagi/service/providers/openrouter_/chat_completions.py +62 -0
- lionagi-0.6.1/lionagi/service/providers/perplexity_/__init__.py +3 -0
- lionagi-0.6.1/lionagi/service/providers/perplexity_/chat_completions.py +40 -0
- lionagi-0.6.1/lionagi/service/types.py +18 -0
- lionagi-0.6.1/lionagi/session/__init__.py +3 -0
- lionagi-0.6.1/lionagi/session/branch.py +1287 -0
- lionagi-0.6.1/lionagi/session/session.py +296 -0
- lionagi-0.6.1/lionagi/settings.py +72 -0
- lionagi-0.6.1/lionagi/utils.py +2386 -0
- lionagi-0.6.1/lionagi/version.py +1 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/pyproject.toml +8 -7
- {lionagi-0.5.5 → lionagi-0.6.1}/uv.lock +379 -67
- lionagi-0.5.5/docs/api_reference/action.md +0 -226
- lionagi-0.5.5/lionagi/__init__.py +0 -29
- lionagi-0.5.5/lionagi/core/action/action_manager.py +0 -289
- lionagi-0.5.5/lionagi/core/action/base.py +0 -109
- lionagi-0.5.5/lionagi/core/action/function_calling.py +0 -153
- lionagi-0.5.5/lionagi/core/action/tool.py +0 -202
- lionagi-0.5.5/lionagi/core/action/types.py +0 -16
- lionagi-0.5.5/lionagi/core/communication/action_request.py +0 -163
- lionagi-0.5.5/lionagi/core/communication/action_response.py +0 -149
- lionagi-0.5.5/lionagi/core/communication/base_mail.py +0 -49
- lionagi-0.5.5/lionagi/core/communication/instruction.py +0 -376
- lionagi-0.5.5/lionagi/core/communication/message.py +0 -286
- lionagi-0.5.5/lionagi/core/communication/message_manager.py +0 -543
- lionagi-0.5.5/lionagi/core/communication/system.py +0 -116
- lionagi-0.5.5/lionagi/core/communication/templates/assistant_response.jinja2 +0 -2
- lionagi-0.5.5/lionagi/core/communication/types.py +0 -27
- lionagi-0.5.5/lionagi/core/communication/utils.py +0 -256
- lionagi-0.5.5/lionagi/core/forms/types.py +0 -13
- lionagi-0.5.5/lionagi/core/generic/component.py +0 -422
- lionagi-0.5.5/lionagi/core/generic/edge.py +0 -163
- lionagi-0.5.5/lionagi/core/generic/element.py +0 -199
- lionagi-0.5.5/lionagi/core/generic/graph.py +0 -377
- lionagi-0.5.5/lionagi/core/generic/log.py +0 -151
- lionagi-0.5.5/lionagi/core/generic/log_manager.py +0 -320
- lionagi-0.5.5/lionagi/core/generic/node.py +0 -11
- lionagi-0.5.5/lionagi/core/generic/progression.py +0 -395
- lionagi-0.5.5/lionagi/core/generic/types.py +0 -23
- lionagi-0.5.5/lionagi/core/generic/utils.py +0 -53
- lionagi-0.5.5/lionagi/core/models/base.py +0 -28
- lionagi-0.5.5/lionagi/core/models/field_model.py +0 -145
- lionagi-0.5.5/lionagi/core/models/model_params.py +0 -194
- lionagi-0.5.5/lionagi/core/models/types.py +0 -19
- lionagi-0.5.5/lionagi/core/session/branch.py +0 -130
- lionagi-0.5.5/lionagi/core/session/branch_mixins.py +0 -581
- lionagi-0.5.5/lionagi/core/session/session.py +0 -163
- lionagi-0.5.5/lionagi/core/session/types.py +0 -8
- lionagi-0.5.5/lionagi/core/typing/__init__.py +0 -9
- lionagi-0.5.5/lionagi/core/typing/_concepts.py +0 -173
- lionagi-0.5.5/lionagi/core/typing/_id.py +0 -104
- lionagi-0.5.5/lionagi/core/typing/_pydantic.py +0 -33
- lionagi-0.5.5/lionagi/core/typing/_typing.py +0 -54
- lionagi-0.5.5/lionagi/integrations/_services.py +0 -17
- lionagi-0.5.5/lionagi/integrations/anthropic_/AnthropicModel.py +0 -268
- lionagi-0.5.5/lionagi/integrations/anthropic_/AnthropicService.py +0 -127
- lionagi-0.5.5/lionagi/integrations/anthropic_/anthropic_max_output_token_data.yaml +0 -12
- lionagi-0.5.5/lionagi/integrations/anthropic_/anthropic_price_data.yaml +0 -34
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/api_request.py +0 -277
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/data_models.py +0 -40
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/match_response.py +0 -119
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/request/message_models.py +0 -14
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/request/request_body.py +0 -74
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/response/content_models.py +0 -32
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/response/response_body.py +0 -101
- lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/response/usage_models.py +0 -25
- lionagi-0.5.5/lionagi/integrations/groq_/GroqModel.py +0 -325
- lionagi-0.5.5/lionagi/integrations/groq_/GroqService.py +0 -156
- lionagi-0.5.5/lionagi/integrations/groq_/api_endpoints/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/groq_/api_endpoints/data_models.py +0 -187
- lionagi-0.5.5/lionagi/integrations/groq_/api_endpoints/groq_request.py +0 -288
- lionagi-0.5.5/lionagi/integrations/groq_/api_endpoints/match_response.py +0 -106
- lionagi-0.5.5/lionagi/integrations/groq_/api_endpoints/response_utils.py +0 -105
- lionagi-0.5.5/lionagi/integrations/groq_/groq_max_output_token_data.yaml +0 -21
- lionagi-0.5.5/lionagi/integrations/groq_/groq_price_data.yaml +0 -58
- lionagi-0.5.5/lionagi/integrations/groq_/groq_rate_limits.yaml +0 -105
- lionagi-0.5.5/lionagi/integrations/litellm_/imodel.py +0 -76
- lionagi-0.5.5/lionagi/integrations/ollama_/OllamaModel.py +0 -244
- lionagi-0.5.5/lionagi/integrations/ollama_/OllamaService.py +0 -142
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/api_request.py +0 -179
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/chat_completion/message_models.py +0 -31
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/chat_completion/request_body.py +0 -46
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/chat_completion/response_body.py +0 -67
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/chat_completion/tool_models.py +0 -49
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/completion/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/completion/request_body.py +0 -72
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/completion/response_body.py +0 -59
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/data_models.py +0 -15
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/embedding/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/embedding/request_body.py +0 -33
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/embedding/response_body.py +0 -29
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/match_data_model.py +0 -62
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/match_response.py +0 -190
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/copy_model.py +0 -13
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/create_model.py +0 -28
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/delete_model.py +0 -11
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/list_model.py +0 -60
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/pull_model.py +0 -34
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/push_model.py +0 -35
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model/show_model.py +0 -36
- lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/option_models.py +0 -68
- lionagi-0.5.5/lionagi/integrations/openai_/OpenAIModel.py +0 -419
- lionagi-0.5.5/lionagi/integrations/openai_/OpenAIService.py +0 -435
- lionagi-0.5.5/lionagi/integrations/openai_/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/__init__.py +0 -3
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/api_request.py +0 -277
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/audio/__init__.py +0 -9
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/audio/speech_models.py +0 -34
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/audio/transcription_models.py +0 -136
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/audio/translation_models.py +0 -41
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/audio/types.py +0 -41
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/__init__.py +0 -17
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/batch_models.py +0 -146
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/cancel_batch.py +0 -7
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/create_batch.py +0 -26
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/list_batch.py +0 -37
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/request_object_models.py +0 -65
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/retrieve_batch.py +0 -7
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/batch/types.py +0 -4
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/__init__.py +0 -1
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/__init__.py +0 -39
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/message_models.py +0 -121
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/request_body.py +0 -221
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/response_format.py +0 -71
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/stream_options.py +0 -14
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/tool_choice_models.py +0 -17
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/tool_models.py +0 -54
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/request/types.py +0 -18
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/choice_models.py +0 -62
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/function_models.py +0 -16
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/log_prob_models.py +0 -47
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/message_models.py +0 -25
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/response_body.py +0 -99
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/types.py +0 -8
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/response/usage_models.py +0 -24
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/chat_completions/util.py +0 -46
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/data_models.py +0 -23
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/embeddings/__init__.py +0 -3
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/embeddings/request_body.py +0 -79
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/embeddings/response_body.py +0 -67
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/files/__init__.py +0 -11
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/files/delete_file.py +0 -20
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/files/file_models.py +0 -56
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/files/list_files.py +0 -27
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/files/retrieve_file.py +0 -9
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/files/upload_file.py +0 -38
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/__init__.py +0 -37
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/cancel_jobs.py +0 -9
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/create_jobs.py +0 -133
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/fine_tuning_job_checkpoint_models.py +0 -58
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/fine_tuning_job_event_models.py +0 -31
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/fine_tuning_job_models.py +0 -140
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/list_fine_tuning_checkpoints.py +0 -51
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/list_fine_tuning_events.py +0 -42
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/list_fine_tuning_jobs.py +0 -31
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/retrieve_jobs.py +0 -9
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/fine_tuning/training_format.py +0 -30
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/images/__init__.py +0 -9
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/images/image_edit_models.py +0 -69
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/images/image_models.py +0 -56
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/images/image_variation_models.py +0 -56
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/images/response_body.py +0 -30
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/match_data_model.py +0 -197
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/match_response.py +0 -336
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/models/__init__.py +0 -7
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/models/delete_fine_tuned_model.py +0 -17
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/models/models_models.py +0 -31
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/models/retrieve_model.py +0 -9
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/moderations/__init__.py +0 -3
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/moderations/request_body.py +0 -20
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/moderations/response_body.py +0 -139
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/uploads/__init__.py +0 -19
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/uploads/add_upload_part.py +0 -11
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/uploads/cancel_upload.py +0 -7
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/uploads/complete_upload.py +0 -18
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/uploads/create_upload.py +0 -17
- lionagi-0.5.5/lionagi/integrations/openai_/api_endpoints/uploads/uploads_models.py +0 -52
- lionagi-0.5.5/lionagi/integrations/openai_/image_token_calculator/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/openai_/image_token_calculator/image_token_calculator.py +0 -98
- lionagi-0.5.5/lionagi/integrations/openai_/image_token_calculator/openai_image_token_data.yaml +0 -15
- lionagi-0.5.5/lionagi/integrations/openai_/openai_max_output_token_data.yaml +0 -12
- lionagi-0.5.5/lionagi/integrations/openai_/openai_price_data.yaml +0 -26
- lionagi-0.5.5/lionagi/integrations/openai_/version.py +0 -1
- lionagi-0.5.5/lionagi/integrations/pandas_/__init__.py +0 -24
- lionagi-0.5.5/lionagi/integrations/pandas_/extend_df.py +0 -61
- lionagi-0.5.5/lionagi/integrations/pandas_/read.py +0 -103
- lionagi-0.5.5/lionagi/integrations/pandas_/remove_rows.py +0 -61
- lionagi-0.5.5/lionagi/integrations/pandas_/replace_keywords.py +0 -65
- lionagi-0.5.5/lionagi/integrations/pandas_/save.py +0 -131
- lionagi-0.5.5/lionagi/integrations/pandas_/search_keywords.py +0 -69
- lionagi-0.5.5/lionagi/integrations/pandas_/to_df.py +0 -196
- lionagi-0.5.5/lionagi/integrations/pandas_/update_cells.py +0 -54
- lionagi-0.5.5/lionagi/integrations/perplexity_/PerplexityModel.py +0 -274
- lionagi-0.5.5/lionagi/integrations/perplexity_/PerplexityService.py +0 -118
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/api_request.py +0 -171
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/chat_completions/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/chat_completions/request/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/chat_completions/request/request_body.py +0 -121
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/chat_completions/response/__init__.py +0 -0
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/chat_completions/response/response_body.py +0 -146
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/data_models.py +0 -63
- lionagi-0.5.5/lionagi/integrations/perplexity_/api_endpoints/match_response.py +0 -26
- lionagi-0.5.5/lionagi/integrations/perplexity_/perplexity_max_output_token_data.yaml +0 -3
- lionagi-0.5.5/lionagi/integrations/perplexity_/perplexity_price_data.yaml +0 -10
- lionagi-0.5.5/lionagi/integrations/perplexity_/version.py +0 -1
- lionagi-0.5.5/lionagi/integrations/pydantic_/__init__.py +0 -8
- lionagi-0.5.5/lionagi/integrations/pydantic_/break_down_annotation.py +0 -81
- lionagi-0.5.5/lionagi/integrations/pydantic_/new_model.py +0 -208
- lionagi-0.5.5/lionagi/libs/__init__.py +0 -0
- lionagi-0.5.5/lionagi/libs/compress/__init__.py +0 -0
- lionagi-0.5.5/lionagi/libs/constants.py +0 -98
- lionagi-0.5.5/lionagi/libs/file/__init__.py +0 -0
- lionagi-0.5.5/lionagi/libs/file/path.py +0 -301
- lionagi-0.5.5/lionagi/libs/file/types.py +0 -22
- lionagi-0.5.5/lionagi/libs/func/__init__.py +0 -0
- lionagi-0.5.5/lionagi/libs/func/async_calls/__init__.py +0 -24
- lionagi-0.5.5/lionagi/libs/func/async_calls/alcall.py +0 -210
- lionagi-0.5.5/lionagi/libs/func/async_calls/bcall.py +0 -130
- lionagi-0.5.5/lionagi/libs/func/async_calls/mcall.py +0 -134
- lionagi-0.5.5/lionagi/libs/func/async_calls/pcall.py +0 -149
- lionagi-0.5.5/lionagi/libs/func/async_calls/rcall.py +0 -217
- lionagi-0.5.5/lionagi/libs/func/async_calls/tcall.py +0 -114
- lionagi-0.5.5/lionagi/libs/func/async_calls/ucall.py +0 -85
- lionagi-0.5.5/lionagi/libs/func/decorators.py +0 -277
- lionagi-0.5.5/lionagi/libs/func/lcall.py +0 -57
- lionagi-0.5.5/lionagi/libs/func/params.py +0 -64
- lionagi-0.5.5/lionagi/libs/func/throttle.py +0 -119
- lionagi-0.5.5/lionagi/libs/func/types.py +0 -39
- lionagi-0.5.5/lionagi/libs/func/utils.py +0 -96
- lionagi-0.5.5/lionagi/libs/package/__init__.py +0 -0
- lionagi-0.5.5/lionagi/libs/package/types.py +0 -26
- lionagi-0.5.5/lionagi/libs/parse/flatten/__init__.py +0 -9
- lionagi-0.5.5/lionagi/libs/parse/flatten/params.py +0 -52
- lionagi-0.5.5/lionagi/libs/parse/json/__init__.py +0 -27
- lionagi-0.5.5/lionagi/libs/parse/json/extract.py +0 -102
- lionagi-0.5.5/lionagi/libs/parse/json/parse.py +0 -179
- lionagi-0.5.5/lionagi/libs/parse/json/to_json.py +0 -71
- lionagi-0.5.5/lionagi/libs/parse/nested/__init__.py +0 -33
- lionagi-0.5.5/lionagi/libs/parse/nested/to_flat_list.py +0 -64
- lionagi-0.5.5/lionagi/libs/parse/params.py +0 -0
- lionagi-0.5.5/lionagi/libs/parse/string_parse/__init__.py +0 -11
- lionagi-0.5.5/lionagi/libs/parse/type_convert/__init__.py +0 -19
- lionagi-0.5.5/lionagi/libs/parse/type_convert/params.py +0 -145
- lionagi-0.5.5/lionagi/libs/parse/type_convert/to_dict.py +0 -333
- lionagi-0.5.5/lionagi/libs/parse/type_convert/to_list.py +0 -186
- lionagi-0.5.5/lionagi/libs/parse/type_convert/to_num.py +0 -358
- lionagi-0.5.5/lionagi/libs/parse/type_convert/to_str.py +0 -195
- lionagi-0.5.5/lionagi/libs/parse/types.py +0 -9
- lionagi-0.5.5/lionagi/libs/parse/validate/__init__.py +0 -14
- lionagi-0.5.5/lionagi/libs/parse/validate/params.py +0 -62
- lionagi-0.5.5/lionagi/libs/parse/xml/__init__.py +0 -10
- lionagi-0.5.5/lionagi/libs/parse/xml/convert.py +0 -56
- lionagi-0.5.5/lionagi/libs/parse/xml/parser.py +0 -93
- lionagi-0.5.5/lionagi/libs/string_similarity/__init__.py +0 -32
- lionagi-0.5.5/lionagi/libs/string_similarity/matcher.py +0 -102
- lionagi-0.5.5/lionagi/libs/string_similarity/utils.py +0 -15
- lionagi-0.5.5/lionagi/libs/utils.py +0 -266
- lionagi-0.5.5/lionagi/operations/__init__.py +0 -3
- lionagi-0.5.5/lionagi/operations/brainstorm/__init__.py +0 -3
- lionagi-0.5.5/lionagi/operations/plan/__init__.py +0 -3
- lionagi-0.5.5/lionagi/operations/select/__init__.py +0 -3
- lionagi-0.5.5/lionagi/protocols/adapters/__init__.py +0 -0
- lionagi-0.5.5/lionagi/protocols/adapters/json_adapter.py +0 -43
- lionagi-0.5.5/lionagi/protocols/adapters/pandas_adapter.py +0 -96
- lionagi-0.5.5/lionagi/protocols/configs/__init__.py +0 -0
- lionagi-0.5.5/lionagi/protocols/configs/branch_config.py +0 -86
- lionagi-0.5.5/lionagi/protocols/configs/id_config.py +0 -15
- lionagi-0.5.5/lionagi/protocols/configs/imodel_config.py +0 -73
- lionagi-0.5.5/lionagi/protocols/configs/log_config.py +0 -93
- lionagi-0.5.5/lionagi/protocols/configs/retry_config.py +0 -29
- lionagi-0.5.5/lionagi/protocols/configs/types.py +0 -15
- lionagi-0.5.5/lionagi/protocols/operatives/instruct.py +0 -194
- lionagi-0.5.5/lionagi/protocols/operatives/types.py +0 -19
- lionagi-0.5.5/lionagi/protocols/registries/_component_registry.py +0 -23
- lionagi-0.5.5/lionagi/protocols/registries/_pile_registry.py +0 -30
- lionagi-0.5.5/lionagi/service/__init__.py +0 -16
- lionagi-0.5.5/lionagi/service/complete_request_info.py +0 -11
- lionagi-0.5.5/lionagi/service/imodel.py +0 -130
- lionagi-0.5.5/lionagi/service/rate_limiter.py +0 -108
- lionagi-0.5.5/lionagi/service/service.py +0 -41
- lionagi-0.5.5/lionagi/service/service_match_util.py +0 -131
- lionagi-0.5.5/lionagi/service/service_util.py +0 -72
- lionagi-0.5.5/lionagi/service/token_calculator.py +0 -51
- lionagi-0.5.5/lionagi/settings.py +0 -128
- lionagi-0.5.5/lionagi/strategies/__init__.py +0 -0
- lionagi-0.5.5/lionagi/strategies/types.py +0 -21
- lionagi-0.5.5/lionagi/version.py +0 -1
- {lionagi-0.5.5 → lionagi-0.6.1}/.github/FUNDING.yml +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/.github/dependabot.yml +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/.github/workflows/codeql.yml +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/.gitignore +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/.pre-commit-config.yaml +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/.python-version +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/CODE_OF_CONDUCT.md +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/CONTRIBUTING.md +0 -0
- {lionagi-0.5.5 → lionagi-0.6.1}/LICENSE +0 -0
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/libs}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core/action → lionagi-0.6.1/lionagi/libs/compress}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/libs/file}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core/forms → lionagi-0.6.1/lionagi/libs/nested}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core/generic → lionagi-0.6.1/lionagi/libs/package}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core/session → lionagi-0.6.1/lionagi/libs/schema}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/anthropic_ → lionagi-0.6.1/lionagi/libs/validate}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints → lionagi-0.6.1/lionagi/operations/brainstorm}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages → lionagi-0.6.1/lionagi/operations/strategies}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/request → lionagi-0.6.1/lionagi/operatives}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/groq_ → lionagi-0.6.1/lionagi/operatives/action}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/litellm_ → lionagi-0.6.1/lionagi/operatives/forms}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core → lionagi-0.6.1/lionagi/operatives}/forms/utils.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/ollama_ → lionagi-0.6.1/lionagi/operatives/instruct}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints → lionagi-0.6.1/lionagi/operatives/models}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/chat_completion → lionagi-0.6.1/lionagi/protocols}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations → lionagi-0.6.1/lionagi/protocols/adapters}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/anthropic_/api_endpoints/messages/response → lionagi-0.6.1/lionagi/protocols/adapters/pandas_}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/ollama_/api_endpoints/model → lionagi-0.6.1/lionagi/protocols/generic}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/integrations/perplexity_ → lionagi-0.6.1/lionagi/protocols/graph}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/protocols → lionagi-0.6.1/lionagi/protocols/mail}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/protocols/operatives → lionagi-0.6.1/lionagi/protocols/messages}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/templates/README.md +0 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/templates/action_request.jinja2 +0 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/templates/action_response.jinja2 +0 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/templates/system_message.jinja2 +0 -0
- {lionagi-0.5.5/lionagi/core/communication → lionagi-0.6.1/lionagi/protocols/messages}/templates/tool_schemas.jinja2 +0 -0
- {lionagi-0.5.5/lionagi/libs/parse → lionagi-0.6.1/lionagi/service}/__init__.py +0 -0
- {lionagi-0.5.5/lionagi/protocols/registries → lionagi-0.6.1/lionagi/service/endpoints}/__init__.py +0 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
name: Build and Deploy Docs
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ "main" ]
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build-deploy:
|
9
|
+
runs-on: ubuntu-latest
|
10
|
+
steps:
|
11
|
+
- name: Check out the repo
|
12
|
+
uses: actions/checkout@v4
|
13
|
+
|
14
|
+
- name: Set up Python
|
15
|
+
uses: actions/setup-python@v5
|
16
|
+
with:
|
17
|
+
python-version: "3.10"
|
18
|
+
|
19
|
+
- name: Install dependencies
|
20
|
+
run: |
|
21
|
+
pip install --upgrade pip
|
22
|
+
pip install sphinx furo # or your theme
|
23
|
+
# plus any other dependencies needed
|
24
|
+
|
25
|
+
- name: Build Sphinx docs
|
26
|
+
run: |
|
27
|
+
cd docs
|
28
|
+
make html
|
29
|
+
|
30
|
+
- name: Deploy to GitHub Pages
|
31
|
+
uses: peaceiris/actions-gh-pages@v4
|
32
|
+
with:
|
33
|
+
github_token: ${{ secrets.GH_TOKEN }}
|
34
|
+
publish_dir: docs/_build/html
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: lionagi
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.6.1
|
4
4
|
Summary: An AGentic Intelligence Operating System.
|
5
5
|
Author-email: HaiyangLi <quantocean.li@gmail.com>
|
6
6
|
License: Apache License
|
@@ -217,21 +217,22 @@ Classifier: Programming Language :: Python :: 3 :: Only
|
|
217
217
|
Classifier: Programming Language :: Python :: 3.11
|
218
218
|
Classifier: Programming Language :: Python :: 3.12
|
219
219
|
Classifier: Programming Language :: Python :: 3.13
|
220
|
-
Requires-Python: >=3.
|
221
|
-
Requires-Dist:
|
222
|
-
Requires-Dist:
|
220
|
+
Requires-Python: >=3.10
|
221
|
+
Requires-Dist: aiocache>=0.12.0
|
222
|
+
Requires-Dist: aiohttp>=3.11.0
|
223
|
+
Requires-Dist: jinja2>=3.1.0
|
223
224
|
Requires-Dist: litellm>=1.55.3
|
224
225
|
Requires-Dist: pandas>=2.0.0
|
225
|
-
Requires-Dist: pillow>=
|
226
|
-
Requires-Dist: pydantic>=2.
|
226
|
+
Requires-Dist: pillow>=10.0.0
|
227
|
+
Requires-Dist: pydantic>=2.0.0
|
227
228
|
Requires-Dist: python-dotenv>=1.0.1
|
228
229
|
Description-Content-Type: text/markdown
|
229
230
|
|
230
231
|
![PyPI - Version](https://img.shields.io/pypi/v/lionagi?labelColor=233476aa&color=231fc935)
|
231
232
|
![PyPI - Downloads](https://img.shields.io/pypi/dm/lionagi?color=blue)
|
232
|
-
![Python Version](https://img.shields.io/badge/python-3.
|
233
|
+
![Python Version](https://img.shields.io/badge/python-3.10%2B-blue)
|
233
234
|
|
234
|
-
[Documentation](https://
|
235
|
+
[Documentation](https://lion-agi.github.io/lionagi/) | [Discord](https://discord.gg/aqSJ2v46vu) | [PyPI](https://pypi.org/project/lionagi/) | [Roadmap](https://trello.com/b/3seomsrI/lionagi)
|
235
236
|
|
236
237
|
# LION Framework
|
237
238
|
### Language InterOperable Network - The Future of Controlled AI Operations
|
@@ -541,7 +542,7 @@ Join our [Discord community](https://discord.gg/aqSJ2v46vu) to:
|
|
541
542
|
author = {Haiyang Li},
|
542
543
|
month = {12},
|
543
544
|
year = {2023},
|
544
|
-
title = {LionAGI:
|
545
|
+
title = {LionAGI: Towards Automated General Intelligence},
|
545
546
|
url = {https://github.com/lion-agi/lionagi},
|
546
547
|
}
|
547
548
|
```
|
@@ -1,8 +1,8 @@
|
|
1
1
|
![PyPI - Version](https://img.shields.io/pypi/v/lionagi?labelColor=233476aa&color=231fc935)
|
2
2
|
![PyPI - Downloads](https://img.shields.io/pypi/dm/lionagi?color=blue)
|
3
|
-
![Python Version](https://img.shields.io/badge/python-3.
|
3
|
+
![Python Version](https://img.shields.io/badge/python-3.10%2B-blue)
|
4
4
|
|
5
|
-
[Documentation](https://
|
5
|
+
[Documentation](https://lion-agi.github.io/lionagi/) | [Discord](https://discord.gg/aqSJ2v46vu) | [PyPI](https://pypi.org/project/lionagi/) | [Roadmap](https://trello.com/b/3seomsrI/lionagi)
|
6
6
|
|
7
7
|
# LION Framework
|
8
8
|
### Language InterOperable Network - The Future of Controlled AI Operations
|
@@ -312,7 +312,7 @@ Join our [Discord community](https://discord.gg/aqSJ2v46vu) to:
|
|
312
312
|
author = {Haiyang Li},
|
313
313
|
month = {12},
|
314
314
|
year = {2023},
|
315
|
-
title = {LionAGI:
|
315
|
+
title = {LionAGI: Towards Automated General Intelligence},
|
316
316
|
url = {https://github.com/lion-agi/lionagi},
|
317
317
|
}
|
318
318
|
```
|
@@ -0,0 +1,113 @@
|
|
1
|
+
import os
|
2
|
+
from collections import defaultdict
|
3
|
+
|
4
|
+
|
5
|
+
def analyze_file(file_path):
|
6
|
+
with open(file_path, encoding="utf-8") as file:
|
7
|
+
lines = file.readlines()
|
8
|
+
|
9
|
+
stats = {
|
10
|
+
"total_lines": len(lines),
|
11
|
+
"code_lines": 0,
|
12
|
+
"comment_lines": 0,
|
13
|
+
"blank_lines": 0,
|
14
|
+
"docstring_lines": 0,
|
15
|
+
}
|
16
|
+
|
17
|
+
in_docstring = False
|
18
|
+
docstring_delimiter = None
|
19
|
+
|
20
|
+
for line in lines:
|
21
|
+
stripped = line.strip()
|
22
|
+
|
23
|
+
if not stripped:
|
24
|
+
stats["blank_lines"] += 1
|
25
|
+
continue
|
26
|
+
|
27
|
+
if in_docstring:
|
28
|
+
stats["docstring_lines"] += 1
|
29
|
+
if stripped.endswith(docstring_delimiter):
|
30
|
+
in_docstring = False
|
31
|
+
continue
|
32
|
+
|
33
|
+
if stripped.startswith("'''") or stripped.startswith('"""'):
|
34
|
+
stats["docstring_lines"] += 1
|
35
|
+
in_docstring = True
|
36
|
+
docstring_delimiter = stripped[0] * 3
|
37
|
+
if stripped.endswith(docstring_delimiter) and len(stripped) > 3:
|
38
|
+
in_docstring = False
|
39
|
+
continue
|
40
|
+
|
41
|
+
if stripped.startswith("#"):
|
42
|
+
stats["comment_lines"] += 1
|
43
|
+
else:
|
44
|
+
stats["code_lines"] += 1
|
45
|
+
|
46
|
+
return stats
|
47
|
+
|
48
|
+
|
49
|
+
def analyze_package(package_path):
|
50
|
+
total_stats = defaultdict(lambda: defaultdict(int))
|
51
|
+
file_stats = {}
|
52
|
+
|
53
|
+
for root, _, files in os.walk(package_path):
|
54
|
+
for file in files:
|
55
|
+
if file.endswith((".py", ".pyx", ".pyd")):
|
56
|
+
file_path = os.path.join(root, file)
|
57
|
+
relative_path = os.path.relpath(file_path, package_path)
|
58
|
+
stats = analyze_file(file_path)
|
59
|
+
file_stats[relative_path] = stats
|
60
|
+
|
61
|
+
file_type = "Python"
|
62
|
+
if file.endswith(".pyx"):
|
63
|
+
file_type = "Cython"
|
64
|
+
elif file.endswith(".pyd"):
|
65
|
+
file_type = "Python DLL"
|
66
|
+
|
67
|
+
for key, value in stats.items():
|
68
|
+
total_stats[file_type][key] += value
|
69
|
+
|
70
|
+
return total_stats, file_stats
|
71
|
+
|
72
|
+
|
73
|
+
def print_analysis(total_stats, file_stats):
|
74
|
+
print("Package Analysis:")
|
75
|
+
print("=================")
|
76
|
+
|
77
|
+
grand_total = defaultdict(int)
|
78
|
+
for file_type, stats in total_stats.items():
|
79
|
+
print(f"\n{file_type} Files:")
|
80
|
+
print(f" Total Lines: {stats['total_lines']}")
|
81
|
+
print(f" Code Lines: {stats['code_lines']}")
|
82
|
+
print(f" Comment Lines: {stats['comment_lines']}")
|
83
|
+
print(f" Docstring Lines: {stats['docstring_lines']}")
|
84
|
+
print(f" Blank Lines: {stats['blank_lines']}")
|
85
|
+
|
86
|
+
for key, value in stats.items():
|
87
|
+
grand_total[key] += value
|
88
|
+
|
89
|
+
print("\nGrand Total:")
|
90
|
+
print(f" Total Lines: {grand_total['total_lines']}")
|
91
|
+
print(f" Code Lines: {grand_total['code_lines']}")
|
92
|
+
print(f" Comment Lines: {grand_total['comment_lines']}")
|
93
|
+
print(f" Docstring Lines: {grand_total['docstring_lines']}")
|
94
|
+
print(f" Blank Lines: {grand_total['blank_lines']}")
|
95
|
+
|
96
|
+
print("\nTop 10 Files by Code Lines:")
|
97
|
+
sorted_files = sorted(
|
98
|
+
file_stats.items(), key=lambda x: x[1]["code_lines"], reverse=True
|
99
|
+
)
|
100
|
+
for file, stats in sorted_files[:10]:
|
101
|
+
print(f" {file}: {stats['code_lines']} code lines")
|
102
|
+
|
103
|
+
|
104
|
+
if __name__ == "__main__":
|
105
|
+
print("Lion Analysis")
|
106
|
+
package_path = "./lionagi" # Replace with your package path
|
107
|
+
total_stats, file_stats = analyze_package(package_path)
|
108
|
+
print_analysis(total_stats, file_stats)
|
109
|
+
|
110
|
+
print("\nDev Tool Analysis")
|
111
|
+
package_path = "./tests" # Replace with your package path
|
112
|
+
total_stats, file_stats = analyze_package(package_path)
|
113
|
+
print_analysis(total_stats, file_stats)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Makefile — On Linux/macOS, run "make html" or "make latexpdf"
|
2
|
+
|
3
|
+
SHELL = /bin/sh
|
4
|
+
|
5
|
+
SPHINXBUILD = sphinx-build
|
6
|
+
SOURCEDIR = .
|
7
|
+
BUILDDIR = _build
|
8
|
+
|
9
|
+
.PHONY: help clean html
|
10
|
+
|
11
|
+
help:
|
12
|
+
@echo "Please use 'make <target>' where <target> is one of:"
|
13
|
+
@echo " html to build the HTML documentation"
|
14
|
+
@echo " clean to remove build artifacts"
|
15
|
+
|
16
|
+
clean:
|
17
|
+
rm -rf $(BUILDDIR)/*
|
18
|
+
|
19
|
+
html:
|
20
|
+
$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)"
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/* Container for the custom link */
|
2
|
+
.my-custom-header {
|
3
|
+
/* If you prefer to separate from theme content: */
|
4
|
+
margin: 0.75rem 1rem 0 1rem;
|
5
|
+
display: flex;
|
6
|
+
justify-content: flex-end; /* Right align */
|
7
|
+
align-items: center;
|
8
|
+
/* Optional border or bottom line: */
|
9
|
+
border-bottom: 1px solid var(--color-border-muted, #ccc);
|
10
|
+
padding-bottom: 0.5rem;
|
11
|
+
}
|
12
|
+
|
13
|
+
.my-custom-header .header-link {
|
14
|
+
display: inline-flex;
|
15
|
+
align-items: center;
|
16
|
+
gap: 0.4rem;
|
17
|
+
text-decoration: none;
|
18
|
+
color: var(--color-text-primary, #222); /* fallback if CSS vars not set */
|
19
|
+
background: var(--color-background-accent, #f5f5f5);
|
20
|
+
padding: 0.4rem 0.75rem;
|
21
|
+
border-radius: 6px;
|
22
|
+
font-weight: 500;
|
23
|
+
transition: background-color 0.2s ease, color 0.2s ease;
|
24
|
+
}
|
25
|
+
|
26
|
+
.my-custom-header .header-link:hover {
|
27
|
+
background: var(--color-background-accent-hover, #e6e6e6);
|
28
|
+
color: var(--color-text-primary-hover, #111);
|
29
|
+
}
|
30
|
+
|
31
|
+
/* The GitHub icon: ensures it scales well with text size */
|
32
|
+
.my-custom-header .gh-icon {
|
33
|
+
width: 1.2em;
|
34
|
+
height: 1.2em;
|
35
|
+
flex-shrink: 0;
|
36
|
+
opacity: 0.8;
|
37
|
+
transition: opacity 0.2s ease;
|
38
|
+
}
|
39
|
+
|
40
|
+
.my-custom-header .header-link:hover .gh-icon {
|
41
|
+
opacity: 1.0;
|
42
|
+
}
|
43
|
+
|
44
|
+
/* Example support for dark mode if your theme doesn't handle it automatically. */
|
45
|
+
@media (prefers-color-scheme: dark) {
|
46
|
+
.my-custom-header .header-link {
|
47
|
+
background: var(--color-background-accent-dark, #333);
|
48
|
+
color: var(--color-text-primary-dark, #eee);
|
49
|
+
}
|
50
|
+
.my-custom-header .header-link:hover {
|
51
|
+
background: var(--color-background-accent-hover-dark, #444);
|
52
|
+
}
|
53
|
+
.my-custom-header .gh-icon {
|
54
|
+
opacity: 0.8;
|
55
|
+
}
|
56
|
+
.my-custom-header .header-link:hover .gh-icon {
|
57
|
+
opacity: 1.0;
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{% extends "!layout.html" %}
|
2
|
+
|
3
|
+
{% block header %}
|
4
|
+
<!-- Our custom header container -->
|
5
|
+
<div class="my-custom-header">
|
6
|
+
<!-- A sleek "View on GitHub" link with an icon -->
|
7
|
+
<a class="header-link"
|
8
|
+
href="https://github.com/lion-agi/lionagi"
|
9
|
+
target="_blank"
|
10
|
+
rel="noopener noreferrer"
|
11
|
+
title="View this project on GitHub">
|
12
|
+
<!-- Optional: embed an inline GitHub icon using an SVG -->
|
13
|
+
<svg class="gh-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
|
14
|
+
<path
|
15
|
+
d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303
|
16
|
+
3.438 9.8 8.205 11.387.6.113.82-.258.82-.577
|
17
|
+
0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61
|
18
|
+
-.546-1.387-1.333-1.758-1.333-1.758-1.089-.744.083-.729.083-.729
|
19
|
+
1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.304
|
20
|
+
3.495.998.108-.776.418-1.304.76-1.604-2.665-.3-5.466-1.332-5.466-5.93
|
21
|
+
0-1.31.47-2.381 1.236-3.221-.123-.303-.54-1.523.117-3.176 0 0
|
22
|
+
1.008-.322 3.301 1.23.96-.267 1.98-.399 3-.405 1.02.006
|
23
|
+
2.04.138 3 .405 2.291-1.552 3.299-1.23
|
24
|
+
3.299-1.23 .657 1.653.24 2.873.117 3.176.77.84
|
25
|
+
1.236 1.911 1.236 3.221 0 4.61-2.804 5.625-5.475
|
26
|
+
5.92.43.372.81 1.102.81 2.221 0 1.604-.015
|
27
|
+
2.896-.015 3.286 0 .319.22.694.825.576C20.565
|
28
|
+
22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/>
|
29
|
+
</svg>
|
30
|
+
<span>View on GitHub</span>
|
31
|
+
</a>
|
32
|
+
</div>
|
33
|
+
{{ super() }}
|
34
|
+
{% endblock %}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# conf.py — Sphinx configuration for your docs
|
2
|
+
|
3
|
+
import os
|
4
|
+
import sys
|
5
|
+
|
6
|
+
# Insert the path to your main package so autodoc can find it
|
7
|
+
# (Adjust the relative path to match your repo's layout)
|
8
|
+
sys.path.insert(0, os.path.abspath(".."))
|
9
|
+
|
10
|
+
project = "LionAGI"
|
11
|
+
author = "Haiyang Li"
|
12
|
+
copyright = "2025"
|
13
|
+
release = "0.6" # or version from your package
|
14
|
+
|
15
|
+
extensions = [
|
16
|
+
"sphinx.ext.autodoc",
|
17
|
+
"sphinx.ext.napoleon", # Google/NumPy style docstrings
|
18
|
+
"sphinx.ext.todo",
|
19
|
+
"sphinx.ext.viewcode",
|
20
|
+
# "sphinx.ext.autosummary", # optional
|
21
|
+
]
|
22
|
+
|
23
|
+
templates_path = ["_templates"]
|
24
|
+
exclude_patterns = []
|
25
|
+
|
26
|
+
# -- Options for HTML output ----------------------------------------------
|
27
|
+
html_theme = "furo"
|
28
|
+
html_static_path = ["_static"]
|
29
|
+
|
30
|
+
html_theme_options = {
|
31
|
+
"sidebar_hide_name": True,
|
32
|
+
"navigation_with_keys": True,
|
33
|
+
# Hide the “On This Page” panel if you want to rely solely on your local TOC
|
34
|
+
"hide_pages_index": True,
|
35
|
+
"light_css_variables": {
|
36
|
+
"color-brand-primary": "#007ACC",
|
37
|
+
"color-brand-content": "#006699",
|
38
|
+
},
|
39
|
+
"dark_css_variables": {
|
40
|
+
"color-brand-primary": "#4DC1FF",
|
41
|
+
"color-brand-content": "#99C2FF",
|
42
|
+
},
|
43
|
+
}
|
44
|
+
|
45
|
+
# Tells Sphinx to include custom.css after the theme's CSS
|
46
|
+
html_css_files = [
|
47
|
+
"custom.css",
|
48
|
+
]
|
49
|
+
|
50
|
+
# (Optional) a custom title for the entire site:
|
51
|
+
html_title = "LionAGI Documentation"
|
52
|
+
|
53
|
+
|
54
|
+
# -- Custom / Additional config options -----------------------------------
|
55
|
+
# e.g., napoleon_use_param = True
|
56
|
+
# or todo_include_todos = True
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.. _lionagi-docs-index:
|
2
|
+
|
3
|
+
=================================
|
4
|
+
LionAGI — Documentation Home Page
|
5
|
+
=================================
|
6
|
+
|
7
|
+
Welcome to LionAGI's documentation!
|
8
|
+
|
9
|
+
Here you'll find:
|
10
|
+
|
11
|
+
* Core messages system (actions, etc.)
|
12
|
+
* Adapters (tools for conversions)
|
13
|
+
* Operatives (instruct, plans, etc.)
|
14
|
+
* Additional modules references
|
15
|
+
* High-level operations and strategies
|
16
|
+
* And more...
|
17
|
+
|
18
|
+
Contents
|
19
|
+
========
|
20
|
+
|
21
|
+
.. toctree::
|
22
|
+
:maxdepth: 2
|
23
|
+
:caption: Table of Contents:
|
24
|
+
|
25
|
+
tutorials/index
|
26
|
+
modules/index
|
27
|
+
operations/index
|
28
|
+
|
29
|
+
|
30
|
+
Indices and tables
|
31
|
+
==================
|
32
|
+
|
33
|
+
* :ref:`genindex`
|
34
|
+
* :ref:`modindex`
|
35
|
+
* :ref:`search`
|