Replies: 1 comment
|
参考一下这个case:https://github.com/modelscope/modelscope-agent/blob/master/demo/demo_multi_round_agent.ipynb |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
我希望使用一个变量进行history的存储,而不是本地的文件进行history的存储。
例如:
`llm_config = ...
messages = [{
'role': 'user',
'content': 'Hello.'
}, {
'role': 'assistant',
'content': 'Hi there!'
}, {
'role': 'user',
'content': 'Tell me a joke.'
}]
function_list = []
bot = RolePlay(function_list=function_list, llm=llm_config)
response = bot.run(messages)
`
All reactions