lionagi 0.3.0__tar.gz → 0.3.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {lionagi-0.3.0 → lionagi-0.3.1}/PKG-INFO +1 -1
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/session/directive_mixin.py +11 -3
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/unit.py +34 -2
- lionagi-0.3.1/lionagi/version.py +1 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/pyproject.toml +1 -1
- lionagi-0.3.0/lionagi/version.py +0 -1
- {lionagi-0.3.0 → lionagi-0.3.1}/LICENSE +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/_setting/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/_setting/_setting.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/function_calling.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/manual.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/node.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/tool.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/action/tool_manager.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/base_agent.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/eval/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/eval/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/eval/evaluator.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/eval/vote.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/learn/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/learn/learner.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/plan/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/plan/plan.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/agent/plan/unit_template.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/_logger.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/abc/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/abc/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/abc/component.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/abc/concepts.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/abc/exceptions.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/abc/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/exchange.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/flow.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/model.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/pile.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/progression.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/collections/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/director/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/director/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/director/direct.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/director/director.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/engine/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/engine/branch_engine.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/engine/instruction_map_engine.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/engine/sandbox_.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/engine/script_engine.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/executor/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/executor/base_executor.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/executor/graph_executor.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/executor/neo4j_executor.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/edge.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/edge_condition.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/graph.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/hyperedge.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/node.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/tree.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/generic/tree_node.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/mail/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/mail/mail.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/mail/mail_manager.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/mail/package.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/mail/start_mail.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/action_request.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/action_response.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/assistant_response.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/instruction.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/message.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/system.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/message/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/report/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/report/base.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/report/form.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/report/report.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/report/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/_default.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/action.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/base.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/boolean.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/choice.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/mapping.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/number.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/rulebook.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/string.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/rule/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/session/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/session/branch.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/session/session.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/structure/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/structure/chain.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/structure/forest.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/structure/graph.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/structure/tree.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/parallel_unit.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/action.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/base.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/plan.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/predict.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/score.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/template/select.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/unit_form.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/unit_mixin.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/unit/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/validator/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/validator/validator.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/work.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/work_edge.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/work_function.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/work_function_node.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/work_queue.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/work_task.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/worker.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/worker_engine.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/core/work/worklog.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/compressor/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/compressor/base.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/compressor/llm_compressor.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/compressor/llm_summarizer.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/compressor/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/parser/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/parser/base_parser.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/parser/base_syntax.txt +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/template/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/template/base_template.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/template/schema.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/directive/tokenizer.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/evaluator/README.md +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/evaluator/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/evaluator/ast_evaluator.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/evaluator/base_evaluator.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/knowledge/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/knowledge/base.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/knowledge/graph.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/memory/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/strategies/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/experimental/strategies/base.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/autogen_/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/autogen_/autogen_.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/langchain_/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/langchain_/documents.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/langchain_/langchain_bridge.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/index.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/llama_index_bridge.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/llama_pack.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/node_parser.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/reader.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/llamaindex_/textnode.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/pydantic_/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/pydantic_/pydantic_bridge.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/transformers_/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/bridge/transformers_/install_.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/chunker/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/chunker/chunk.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/config/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/config/mlx_configs.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/config/oai_configs.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/config/ollama_configs.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/config/openrouter_configs.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/loader/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/loader/load.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/loader/load_util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/_mapping.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/litellm.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/mistralai.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/mlx_service.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/oai.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/ollama.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/openrouter.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/services.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/provider/transformers.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/storage/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/storage/neo4j.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/storage/storage_util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/storage/structure_excel.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/storage/to_csv.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/integrations/storage/to_excel.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_api.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_async.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_context.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_convert.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_dataframe.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_func_call.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_image.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_knowledge_graph.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_nested.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_parse.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_queue.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_tokenize.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/ln_validate.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/special_tokens.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/libs/sys_util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/coder/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/coder/add_feature.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/coder/base_prompts.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/coder/code_form.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/coder/coder.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/coder/util.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/researcher/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/researcher/data_source/__init__.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/researcher/data_source/finhub_.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/researcher/data_source/google_.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/researcher/data_source/wiki_.py +0 -0
- {lionagi-0.3.0 → lionagi-0.3.1}/lionagi/lions/researcher/data_source/yfinance_.py +0 -0
@@ -1,4 +1,5 @@
|
|
1
1
|
# lionagi/core/session/directive_mixin.py
|
2
|
+
from pydantic import BaseModel
|
2
3
|
|
3
4
|
from lionagi.core.unit import Unit
|
4
5
|
|
@@ -33,13 +34,14 @@ class DirectiveMixin:
|
|
33
34
|
default=None,
|
34
35
|
timeout: float = None,
|
35
36
|
timing: bool = False,
|
36
|
-
return_branch=False,
|
37
37
|
images=None,
|
38
38
|
image_path=None,
|
39
39
|
template=None,
|
40
40
|
verbose=True,
|
41
41
|
formatter=None,
|
42
42
|
format_kwargs=None,
|
43
|
+
pydantic_model: type[BaseModel] = None,
|
44
|
+
return_pydantic_model: bool = False,
|
43
45
|
**kwargs,
|
44
46
|
):
|
45
47
|
"""
|
@@ -120,7 +122,7 @@ class DirectiveMixin:
|
|
120
122
|
|
121
123
|
images = ImageUtil.read_image_to_base64(image_path)
|
122
124
|
|
123
|
-
|
125
|
+
output = await directive.chat(
|
124
126
|
instruction=instruction,
|
125
127
|
context=context,
|
126
128
|
sender=sender,
|
@@ -139,10 +141,16 @@ class DirectiveMixin:
|
|
139
141
|
timeout=timeout,
|
140
142
|
timing=timing,
|
141
143
|
clear_messages=clear_messages,
|
142
|
-
return_branch=return_branch,
|
143
144
|
images=images,
|
145
|
+
return_pydantic_model=return_pydantic_model,
|
146
|
+
pydantic_model=pydantic_model,
|
147
|
+
return_branch=False,
|
144
148
|
**kwargs,
|
145
149
|
)
|
150
|
+
while isinstance(output, tuple | list):
|
151
|
+
if len(output) == 2 and output[0] == output[1]:
|
152
|
+
output = output[0]
|
153
|
+
return output
|
146
154
|
|
147
155
|
async def direct(
|
148
156
|
self,
|
@@ -1,5 +1,9 @@
|
|
1
|
+
import logging
|
1
2
|
from collections.abc import Callable
|
2
3
|
|
4
|
+
from lionfuncs import to_dict
|
5
|
+
from pydantic import BaseModel
|
6
|
+
|
3
7
|
from lionagi.core.collections import iModel
|
4
8
|
from lionagi.core.collections.abc import Directive
|
5
9
|
from lionagi.core.report.form import Form
|
@@ -71,6 +75,8 @@ class Unit(Directive, DirectiveMixin):
|
|
71
75
|
return_branch=False,
|
72
76
|
formatter=None,
|
73
77
|
format_kwargs={},
|
78
|
+
pydantic_model: type[BaseModel] = None,
|
79
|
+
return_pydantic_model: bool = False,
|
74
80
|
**kwargs,
|
75
81
|
):
|
76
82
|
"""
|
@@ -100,7 +106,17 @@ class Unit(Directive, DirectiveMixin):
|
|
100
106
|
Any: The processed response.
|
101
107
|
"""
|
102
108
|
kwargs = {**retry_kwargs, **kwargs}
|
103
|
-
|
109
|
+
|
110
|
+
if pydantic_model:
|
111
|
+
if form:
|
112
|
+
raise ValueError("Cannot use both form and pydantic_model.")
|
113
|
+
if requested_fields:
|
114
|
+
raise ValueError(
|
115
|
+
"Cannot use both requested_fields and pydantic_model."
|
116
|
+
)
|
117
|
+
requested_fields = pydantic_model.model_json_schema()["properties"]
|
118
|
+
|
119
|
+
output, branch = await rcall(
|
104
120
|
self._chat,
|
105
121
|
instruction=instruction,
|
106
122
|
context=context,
|
@@ -118,11 +134,27 @@ class Unit(Directive, DirectiveMixin):
|
|
118
134
|
imodel=imodel,
|
119
135
|
clear_messages=clear_messages,
|
120
136
|
use_annotation=use_annotation,
|
121
|
-
return_branch=
|
137
|
+
return_branch=True,
|
122
138
|
formatter=formatter,
|
123
139
|
format_kwargs=format_kwargs,
|
124
140
|
**kwargs,
|
125
141
|
)
|
142
|
+
if isinstance(output, tuple | list) and len(output) == 1:
|
143
|
+
output = output[0]
|
144
|
+
|
145
|
+
if isinstance(output, tuple | list) and len(output) == 2:
|
146
|
+
if output[0] == output[1]:
|
147
|
+
output = output[0]
|
148
|
+
|
149
|
+
if return_pydantic_model:
|
150
|
+
try:
|
151
|
+
a_ = to_dict(output, recursive=True, max_recursive_depth=3)
|
152
|
+
output = pydantic_model(**a_)
|
153
|
+
return output, branch if return_branch else output
|
154
|
+
except Exception as e:
|
155
|
+
logging.error(f"Error converting to pydantic model: {e}")
|
156
|
+
|
157
|
+
return output, branch if return_branch else output
|
126
158
|
|
127
159
|
async def direct(
|
128
160
|
self,
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.3.1"
|
lionagi-0.3.0/lionagi/version.py
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.3.0"
|
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.0 → lionagi-0.3.1}/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
|