Data-Copilot / backup.json
zwq2018
Add application file
2b91026
raw
history blame
No virus
2.13 kB
{
"global prompt:": "请根据给定的指令,利用下面的函数一步一步地完成指令任务,每一步你必须要从以下函数库[get_stock_code,get_stock_prices,plot_stock_prices,save_stock_prices_to_csv,compare_stocks_Earnings_Rate,get_company_info]中选择一个函数,并且为该函数生成对应的参数。以json生成的格式如下:{\nstep1:{\n arg:(arg1,arg2...),\n function:%s,\n output:%s},\nstep2:{\n arg:(arg1,arg2..),\n function:%s,\n output:%s},\n}, 请注意每一步只能从函数库中选择一个合适的函数,生成一个result_i,后面步骤的函数使用之前的result作为参数输入",
"Function Library:": "",
"Instruction:请帮我绘制贵州茅台的2018年1月23日到2019年3月13日的股价走势图": "###Solving Process:根据要求我需要调用get_stock_code()函数获取贵州茅台股票代码,然后调用get_stock_prices()函数获取每日的价格,最后使用plot_stock_prices()画图. ###Funciton Call:{\nstep1:{\n arg:('贵州茅台'),\n function:get_stock_code,\n output:result1},\nstep2:{\n arg:(result1,'20180123','20190313'),\n function:get_stock_prices,\n output:result2},\nstep3:{\n arg:(result2,'贵州茅台','close'),\n function:plot_stock_prices,\n output:result3}\n}",
"Instruction:画一下五粮液和泸州老窖从2019年年初到2022年年中的收益率走势": "###Solving Process:根据要求我需要调用两次get_stock_code()分别获取两只股票的股票代码,然后调用compare_stocks_Earnings_Rate()函数比较两只股票的累计收益率走势. ###Function Call:{\nstep1:{\n arg:('五粮液'),\n function:get_stock_code,\n output:result1},\nstep2:{\n arg:('泸州老窖'),\n function:get_stock_code,\n output:result2}, \nstep3:{\n arg:({result1:'五粮液',result2:'泸州老窖'},'20190101','20220630'),\n function:compare_stocks_Earnings_Rate,\n output:result3}\n}\n",
}
step1={ \n "arg": "(arg1,arg2...)", \n "function": "%s", \n "output": "%s" \n},step2={ \n "arg": "(arg1,arg2..)", \n "function": "%s", \n "output": "%s" \n}, \n}