├── LICENSE ├── README.md ├── agent ├── agent_prompts.py ├── convert_request.py ├── custom_agent.py ├── custom_agent_executor.py ├── custom_parser.py ├── get_agent.py └── tools.py ├── data ├── eval_real.json ├── eval_simulated.json ├── public_apis.json └── train_data.json ├── evaluation.py ├── evalution_outputs ├── ToolAlpaca13b.json └── ToolAlpaca7b.json ├── figures ├── ToolAlpaca.png └── pipeline.png ├── instance_generation ├── generation.py ├── instruction.py └── simulator.py ├── prompts ├── Documentation.txt ├── Evaluation.txt ├── Functions.txt ├── Instruction.txt ├── Instruction2.txt ├── Introduction.txt ├── Simulator.txt ├── get_details.txt └── retrieval.txt ├── requirements.txt ├── tool_maker ├── get_elements.py ├── natural_language_documentation.py └── preprocess_public_apis.py ├── train.py └── utils.py /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/README.md -------------------------------------------------------------------------------- /agent/agent_prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/agent_prompts.py -------------------------------------------------------------------------------- /agent/convert_request.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/convert_request.py -------------------------------------------------------------------------------- /agent/custom_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/custom_agent.py -------------------------------------------------------------------------------- /agent/custom_agent_executor.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/custom_agent_executor.py -------------------------------------------------------------------------------- /agent/custom_parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/custom_parser.py -------------------------------------------------------------------------------- /agent/get_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/get_agent.py -------------------------------------------------------------------------------- /agent/tools.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/agent/tools.py -------------------------------------------------------------------------------- /data/eval_real.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/data/eval_real.json -------------------------------------------------------------------------------- /data/eval_simulated.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/data/eval_simulated.json -------------------------------------------------------------------------------- /data/public_apis.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/data/public_apis.json -------------------------------------------------------------------------------- /data/train_data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/data/train_data.json -------------------------------------------------------------------------------- /evaluation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/evaluation.py -------------------------------------------------------------------------------- /evalution_outputs/ToolAlpaca13b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/evalution_outputs/ToolAlpaca13b.json -------------------------------------------------------------------------------- /evalution_outputs/ToolAlpaca7b.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/evalution_outputs/ToolAlpaca7b.json -------------------------------------------------------------------------------- /figures/ToolAlpaca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/figures/ToolAlpaca.png -------------------------------------------------------------------------------- /figures/pipeline.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/figures/pipeline.png -------------------------------------------------------------------------------- /instance_generation/generation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/instance_generation/generation.py -------------------------------------------------------------------------------- /instance_generation/instruction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/instance_generation/instruction.py -------------------------------------------------------------------------------- /instance_generation/simulator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/instance_generation/simulator.py -------------------------------------------------------------------------------- /prompts/Documentation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Documentation.txt -------------------------------------------------------------------------------- /prompts/Evaluation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Evaluation.txt -------------------------------------------------------------------------------- /prompts/Functions.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Functions.txt -------------------------------------------------------------------------------- /prompts/Instruction.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Instruction.txt -------------------------------------------------------------------------------- /prompts/Instruction2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Instruction2.txt -------------------------------------------------------------------------------- /prompts/Introduction.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Introduction.txt -------------------------------------------------------------------------------- /prompts/Simulator.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/Simulator.txt -------------------------------------------------------------------------------- /prompts/get_details.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/get_details.txt -------------------------------------------------------------------------------- /prompts/retrieval.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/prompts/retrieval.txt -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/requirements.txt -------------------------------------------------------------------------------- /tool_maker/get_elements.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/tool_maker/get_elements.py -------------------------------------------------------------------------------- /tool_maker/natural_language_documentation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/tool_maker/natural_language_documentation.py -------------------------------------------------------------------------------- /tool_maker/preprocess_public_apis.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/tool_maker/preprocess_public_apis.py -------------------------------------------------------------------------------- /train.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/train.py -------------------------------------------------------------------------------- /utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tangqiaoyu/ToolAlpaca/HEAD/utils.py --------------------------------------------------------------------------------