├── .clinerules └── uv-project-guidelines.md ├── .env.example ├── .github └── workflows │ └── python-publish.yml ├── .gitignore ├── .python-version ├── LICENSE ├── README-zh.md ├── README.md ├── docs ├── dag-demo.md ├── multi-param-dep-demo-zh.md └── param-parser-info-zh.md ├── images ├── dag-demo.png ├── frame.png ├── langgraph.png └── task-fetch.png ├── llmcompiler ├── __init__.py ├── chat │ ├── __init__.py │ ├── launch.py │ └── run.py ├── custom_llms │ ├── __init__.py │ ├── claude.py │ └── openai.py ├── few_shot │ ├── __init__.py │ ├── example.py │ ├── few_shot.py │ └── generate.py ├── graph │ ├── __init__.py │ ├── joiner.py │ ├── output_parser.py │ ├── plan_and_schedule.py │ ├── planner.py │ ├── prompt.py │ ├── rewrite.py │ ├── token_calculate.py │ └── tool_message.py ├── result │ ├── __init__.py │ └── chat.py ├── service │ ├── __init__.py │ └── status.py ├── tools │ ├── __init__.py │ ├── basetool │ │ ├── __init__.py │ │ ├── fund_basic_v1.py │ │ ├── fund_basic_v2.py │ │ ├── multi_param_dep_v1.py │ │ ├── multi_param_dep_v2.py │ │ ├── multi_param_dep_v3.py │ │ ├── stock_info_fake.py │ │ └── tool_decorator.py │ ├── basic.py │ ├── configure │ │ ├── __init__.py │ │ ├── kwargs_clear.py │ │ ├── pydantic_oper.py │ │ └── tool_decorator.py │ ├── dag │ │ ├── __init__.py │ │ └── dag_flow_params.py │ ├── eval │ │ └── __init__.py │ ├── generic │ │ ├── __init__.py │ │ ├── action_input.py │ │ ├── action_output.py │ │ └── render_description.py │ ├── math │ │ ├── __init__.py │ │ └── math_tools.py │ ├── prompt.py │ └── tools.py └── utils │ ├── __init__.py │ ├── const │ └── __init__.py │ ├── date │ ├── __init__.py │ └── date.py │ ├── prompt │ ├── __init__.py │ └── prompt.py │ ├── string │ ├── __init__.py │ ├── question_trim.py │ ├── string_format.py │ └── string_sim.py │ ├── thread │ ├── __init__.py │ └── pool_executor.py │ └── timeparser │ ├── __init__.py │ ├── chinese_parser.py │ ├── extractor.py │ ├── helper.py │ ├── lunar_solar_date.py │ ├── main.py │ ├── rule_pattern.py │ ├── time_extractor.py │ └── time_parser.py ├── pyproject.toml ├── script └── build.bat └── test ├── __init__.py ├── test.py ├── test_custom_prompts.py ├── test_joiner_parser.py ├── testbak.py └── tools └── test_multi_param_dep_v2.py /.clinerules/uv-project-guidelines.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/.clinerules/uv-project-guidelines.md -------------------------------------------------------------------------------- /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/.env.example -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/.gitignore -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.11 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/LICENSE -------------------------------------------------------------------------------- /README-zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/README-zh.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/README.md -------------------------------------------------------------------------------- /docs/dag-demo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/docs/dag-demo.md -------------------------------------------------------------------------------- /docs/multi-param-dep-demo-zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/docs/multi-param-dep-demo-zh.md -------------------------------------------------------------------------------- /docs/param-parser-info-zh.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/docs/param-parser-info-zh.md -------------------------------------------------------------------------------- /images/dag-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/images/dag-demo.png -------------------------------------------------------------------------------- /images/frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/images/frame.png -------------------------------------------------------------------------------- /images/langgraph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/images/langgraph.png -------------------------------------------------------------------------------- /images/task-fetch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/images/task-fetch.png -------------------------------------------------------------------------------- /llmcompiler/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/chat/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/chat/launch.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/chat/launch.py -------------------------------------------------------------------------------- /llmcompiler/chat/run.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/chat/run.py -------------------------------------------------------------------------------- /llmcompiler/custom_llms/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/custom_llms/claude.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/custom_llms/claude.py -------------------------------------------------------------------------------- /llmcompiler/custom_llms/openai.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/custom_llms/openai.py -------------------------------------------------------------------------------- /llmcompiler/few_shot/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/few_shot/example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/few_shot/example.py -------------------------------------------------------------------------------- /llmcompiler/few_shot/few_shot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/few_shot/few_shot.py -------------------------------------------------------------------------------- /llmcompiler/few_shot/generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/few_shot/generate.py -------------------------------------------------------------------------------- /llmcompiler/graph/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/__init__.py -------------------------------------------------------------------------------- /llmcompiler/graph/joiner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/joiner.py -------------------------------------------------------------------------------- /llmcompiler/graph/output_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/output_parser.py -------------------------------------------------------------------------------- /llmcompiler/graph/plan_and_schedule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/plan_and_schedule.py -------------------------------------------------------------------------------- /llmcompiler/graph/planner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/planner.py -------------------------------------------------------------------------------- /llmcompiler/graph/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/prompt.py -------------------------------------------------------------------------------- /llmcompiler/graph/rewrite.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/rewrite.py -------------------------------------------------------------------------------- /llmcompiler/graph/token_calculate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/token_calculate.py -------------------------------------------------------------------------------- /llmcompiler/graph/tool_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/graph/tool_message.py -------------------------------------------------------------------------------- /llmcompiler/result/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/result/chat.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/result/chat.py -------------------------------------------------------------------------------- /llmcompiler/service/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/service/status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/service/status.py -------------------------------------------------------------------------------- /llmcompiler/tools/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/fund_basic_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/fund_basic_v1.py -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/fund_basic_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/fund_basic_v2.py -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/multi_param_dep_v1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/multi_param_dep_v1.py -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/multi_param_dep_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/multi_param_dep_v2.py -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/multi_param_dep_v3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/multi_param_dep_v3.py -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/stock_info_fake.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/stock_info_fake.py -------------------------------------------------------------------------------- /llmcompiler/tools/basetool/tool_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basetool/tool_decorator.py -------------------------------------------------------------------------------- /llmcompiler/tools/basic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/basic.py -------------------------------------------------------------------------------- /llmcompiler/tools/configure/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/configure/kwargs_clear.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/configure/kwargs_clear.py -------------------------------------------------------------------------------- /llmcompiler/tools/configure/pydantic_oper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/configure/pydantic_oper.py -------------------------------------------------------------------------------- /llmcompiler/tools/configure/tool_decorator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/configure/tool_decorator.py -------------------------------------------------------------------------------- /llmcompiler/tools/dag/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/dag/dag_flow_params.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/dag/dag_flow_params.py -------------------------------------------------------------------------------- /llmcompiler/tools/eval/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/generic/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/generic/action_input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/generic/action_input.py -------------------------------------------------------------------------------- /llmcompiler/tools/generic/action_output.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/generic/action_output.py -------------------------------------------------------------------------------- /llmcompiler/tools/generic/render_description.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/generic/render_description.py -------------------------------------------------------------------------------- /llmcompiler/tools/math/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/tools/math/math_tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/math/math_tools.py -------------------------------------------------------------------------------- /llmcompiler/tools/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/prompt.py -------------------------------------------------------------------------------- /llmcompiler/tools/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/tools/tools.py -------------------------------------------------------------------------------- /llmcompiler/utils/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/utils/const/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/utils/date/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/utils/date/date.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/date/date.py -------------------------------------------------------------------------------- /llmcompiler/utils/prompt/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/utils/prompt/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/prompt/prompt.py -------------------------------------------------------------------------------- /llmcompiler/utils/string/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/utils/string/question_trim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/string/question_trim.py -------------------------------------------------------------------------------- /llmcompiler/utils/string/string_format.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/string/string_format.py -------------------------------------------------------------------------------- /llmcompiler/utils/string/string_sim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/string/string_sim.py -------------------------------------------------------------------------------- /llmcompiler/utils/thread/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /llmcompiler/utils/thread/pool_executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/thread/pool_executor.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/__init__.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/chinese_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/chinese_parser.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/extractor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/extractor.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/helper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/helper.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/lunar_solar_date.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/lunar_solar_date.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/main.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/rule_pattern.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/rule_pattern.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/time_extractor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/time_extractor.py -------------------------------------------------------------------------------- /llmcompiler/utils/timeparser/time_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/llmcompiler/utils/timeparser/time_parser.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/pyproject.toml -------------------------------------------------------------------------------- /script/build.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/script/build.bat -------------------------------------------------------------------------------- /test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/test/test.py -------------------------------------------------------------------------------- /test/test_custom_prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/test/test_custom_prompts.py -------------------------------------------------------------------------------- /test/test_joiner_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/test/test_joiner_parser.py -------------------------------------------------------------------------------- /test/testbak.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/test/testbak.py -------------------------------------------------------------------------------- /test/tools/test_multi_param_dep_v2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crazyyanchao/llmcompiler/HEAD/test/tools/test_multi_param_dep_v2.py --------------------------------------------------------------------------------