lionagi 0.3.3__tar.gz → 0.3.5__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {lionagi-0.3.3 → lionagi-0.3.5}/PKG-INFO +1 -1
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/unit.py +14 -5
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/util.py +27 -0
- lionagi-0.3.5/lionagi/version.py +1 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/pyproject.toml +1 -1
- lionagi-0.3.3/lionagi/version.py +0 -1
- {lionagi-0.3.3 → lionagi-0.3.5}/LICENSE +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/_setting/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/_setting/_setting.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/function_calling.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/manual.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/node.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/tool.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/action/tool_manager.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/base_agent.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/eval/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/eval/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/eval/evaluator.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/eval/vote.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/learn/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/learn/learner.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/plan/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/plan/plan.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/agent/plan/unit_template.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/_logger.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/abc/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/abc/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/abc/component.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/abc/concepts.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/abc/exceptions.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/abc/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/exchange.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/flow.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/model.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/pile.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/progression.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/collections/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/director/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/director/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/director/direct.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/director/director.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/engine/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/engine/branch_engine.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/engine/instruction_map_engine.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/engine/sandbox_.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/engine/script_engine.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/executor/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/executor/base_executor.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/executor/graph_executor.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/executor/neo4j_executor.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/edge.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/edge_condition.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/graph.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/hyperedge.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/node.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/tree.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/generic/tree_node.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/mail/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/mail/mail.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/mail/mail_manager.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/mail/package.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/mail/start_mail.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/action_request.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/action_response.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/assistant_response.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/instruction.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/message.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/system.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/message/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/report/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/report/base.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/report/form.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/report/report.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/report/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/_default.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/action.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/base.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/boolean.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/choice.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/mapping.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/number.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/rulebook.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/string.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/rule/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/session/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/session/branch.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/session/directive_mixin.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/session/session.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/structure/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/structure/chain.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/structure/forest.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/structure/graph.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/structure/tree.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/parallel_unit.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/action.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/base.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/plan.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/predict.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/score.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/template/select.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/unit_form.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/unit/unit_mixin.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/validator/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/validator/validator.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/work.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/work_edge.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/work_function.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/work_function_node.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/work_queue.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/work_task.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/worker.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/worker_engine.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/core/work/worklog.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/compressor/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/compressor/base.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/compressor/llm_compressor.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/compressor/llm_summarizer.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/compressor/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/parser/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/parser/base_parser.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/parser/base_syntax.txt +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/template/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/template/base_template.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/template/schema.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/directive/tokenizer.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/evaluator/README.md +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/evaluator/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/evaluator/ast_evaluator.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/evaluator/base_evaluator.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/knowledge/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/knowledge/base.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/knowledge/graph.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/memory/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/strategies/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/experimental/strategies/base.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/autogen_/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/autogen_/autogen_.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/langchain_/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/langchain_/documents.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/langchain_/langchain_bridge.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/index.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/llama_index_bridge.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/llama_pack.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/node_parser.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/reader.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/textnode.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/pydantic_/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/pydantic_/pydantic_bridge.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/transformers_/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/transformers_/install_.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/chunker/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/chunker/chunk.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/config/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/config/mlx_configs.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/config/oai_configs.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/config/ollama_configs.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/config/openrouter_configs.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/loader/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/loader/load.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/loader/load_util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/_mapping.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/litellm.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/mistralai.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/mlx_service.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/oai.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/ollama.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/openrouter.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/services.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/provider/transformers.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/storage/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/storage/neo4j.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/storage/storage_util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/storage/structure_excel.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/storage/to_csv.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/storage/to_excel.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_api.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_async.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_context.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_convert.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_dataframe.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_func_call.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_image.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_knowledge_graph.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_nested.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_parse.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_queue.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_tokenize.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/ln_validate.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/special_tokens.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/libs/sys_util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/coder/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/coder/add_feature.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/coder/base_prompts.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/coder/code_form.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/coder/coder.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/coder/util.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/config.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/data/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/data/sample_codes.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/data/sample_rurbic.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/forms/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/forms/code_analysis_form.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/rubric.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/services/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/judge/services/judge_code.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/researcher/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/researcher/data_source/__init__.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/researcher/data_source/finhub_.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/researcher/data_source/google_.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/researcher/data_source/wiki_.py +0 -0
- {lionagi-0.3.3 → lionagi-0.3.5}/lionagi/lions/researcher/data_source/yfinance_.py +0 -0
@@ -12,7 +12,7 @@ from lionagi.libs.ln_func_call import rcall
|
|
12
12
|
|
13
13
|
from .unit_form import UnitForm
|
14
14
|
from .unit_mixin import DirectiveMixin
|
15
|
-
from .util import retry_kwargs
|
15
|
+
from .util import break_down_annotation, retry_kwargs
|
16
16
|
|
17
17
|
|
18
18
|
class Unit(Directive, DirectiveMixin):
|
@@ -75,7 +75,7 @@ class Unit(Directive, DirectiveMixin):
|
|
75
75
|
return_branch=False,
|
76
76
|
formatter=None,
|
77
77
|
format_kwargs={},
|
78
|
-
pydantic_model: type[BaseModel] = None,
|
78
|
+
pydantic_model: type[BaseModel] | BaseModel = None,
|
79
79
|
return_pydantic_model: bool = False,
|
80
80
|
**kwargs,
|
81
81
|
):
|
@@ -114,7 +114,11 @@ class Unit(Directive, DirectiveMixin):
|
|
114
114
|
raise ValueError(
|
115
115
|
"Cannot use both requested_fields and pydantic_model."
|
116
116
|
)
|
117
|
-
requested_fields = pydantic_model
|
117
|
+
requested_fields = break_down_annotation(pydantic_model)
|
118
|
+
context = {
|
119
|
+
"info": context,
|
120
|
+
"return_guidance": pydantic_model.model_json_schema(),
|
121
|
+
}
|
118
122
|
|
119
123
|
output, branch = await rcall(
|
120
124
|
self._chat,
|
@@ -148,8 +152,13 @@ class Unit(Directive, DirectiveMixin):
|
|
148
152
|
|
149
153
|
if return_pydantic_model:
|
150
154
|
try:
|
151
|
-
a_ = to_dict(
|
152
|
-
|
155
|
+
a_ = to_dict(
|
156
|
+
output,
|
157
|
+
recursive=True,
|
158
|
+
max_recursive_depth=5,
|
159
|
+
fuzzy_parse=True,
|
160
|
+
)
|
161
|
+
output = pydantic_model.model_validate(a_)
|
153
162
|
return output, branch if return_branch else output
|
154
163
|
except Exception as e:
|
155
164
|
logging.error(f"Error converting to pydantic model: {e}")
|
@@ -1,3 +1,8 @@
|
|
1
|
+
import inspect
|
2
|
+
from typing import get_args
|
3
|
+
|
4
|
+
from pydantic import BaseModel
|
5
|
+
|
1
6
|
retry_kwargs = {
|
2
7
|
"retries": 0, # kwargs for rcall, number of retries if failed
|
3
8
|
"delay": 0, # number of seconds to delay before retrying
|
@@ -74,3 +79,25 @@ async def _direct(
|
|
74
79
|
)
|
75
80
|
|
76
81
|
return await directive.direct(form=form, return_form=True, **kwargs)
|
82
|
+
|
83
|
+
|
84
|
+
def break_down_annotation(model: type[BaseModel]):
|
85
|
+
|
86
|
+
def _ispydantic_model(x):
|
87
|
+
return inspect.isclass(x) and issubclass(x, BaseModel)
|
88
|
+
|
89
|
+
if not _ispydantic_model(model):
|
90
|
+
return model
|
91
|
+
|
92
|
+
out = {}
|
93
|
+
for k, v in model.__annotations__.items():
|
94
|
+
if _ispydantic_model(v):
|
95
|
+
out[k] = break_down_annotation(v)
|
96
|
+
elif "list" in str(v) and get_args(v):
|
97
|
+
v = get_args(v)[0]
|
98
|
+
if _ispydantic_model(v):
|
99
|
+
v = break_down_annotation(v)
|
100
|
+
out[k] = [v]
|
101
|
+
else:
|
102
|
+
out[k] = v
|
103
|
+
return out
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.3.5"
|
lionagi-0.3.3/lionagi/version.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.3.3"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{lionagi-0.3.3 → lionagi-0.3.5}/lionagi/integrations/bridge/llamaindex_/llama_index_bridge.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|