You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English.
Describe the bug
A clear and concise description of what the bug is.
运行reactagent直接报错 To Reproduce
Steps to reproduce the behavior:
agentscope.init(model_configs=[{
"config_name": "my_ollama_chat_config",
"model_type": "ollama_chat",
"model_name": "qwen:32b",
"options": { # Parameters passed to the model when calling
"temperature": 0.5, "seed": 123,
},
"keep_alive": "5m", # Controls how long the model will stay loaded into memory
}])
x = None
while True:
x = user(x)
if x.content == "exit":
break
x = agent(x)
Expected behavior
A clear and concise description of what you expected to happen.
Error messages
Detailed error messages.
Traceback (most recent call last):
File "D:\pyproject\agentscope\examples\conversation_with_react_agent\code\conversation_with_react_agent.py", line 100, in
x = agent(x)
File "D:\pyproject\agentscope\src\agentscope\agents\agent.py", line 294, in call
res = self.reply(*args, **kwargs)
File "D:\pyproject\agentscope\src\agentscope\agents\react_agent.py", line 164, in reply
prompt = self.model.format(self.memory.get_memory(), hint_msg)
File "D:\pyproject\agentscope\src\agentscope\models\ollama_model.py", line 269, in format
"content": system_content_template.format(
KeyError: 'index'
Environment (please complete the following information):
AgentScope Version: [0.0.4]
Python Version: [3.10]
OS: [e.g. macos, windows]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
AgentScope is an open-source project. To involve a broader community, we recommend asking your questions in English.
Describe the bug
A clear and concise description of what the bug is.
运行reactagent直接报错
To Reproduce
Steps to reproduce the behavior:
agentscope.init(model_configs=[{
"config_name": "my_ollama_chat_config",
"model_type": "ollama_chat",
"model_name": "qwen:32b",
"options": { # Parameters passed to the model when calling
"temperature": 0.5, "seed": 123,
},
"keep_alive": "5m", # Controls how long the model will stay loaded into memory
}])
Create agents
agent = ReActAgent(
name="assistant",
model_config_name="my_ollama_chat_config",
verbose=True,
service_toolkit=service_toolkit,
)
user = UserAgent(name="User")
Build
x = None
while True:
x = user(x)
if x.content == "exit":
break
x = agent(x)
Expected behavior
A clear and concise description of what you expected to happen.
Error messages
Detailed error messages.
Traceback (most recent call last):
File "D:\pyproject\agentscope\examples\conversation_with_react_agent\code\conversation_with_react_agent.py", line 100, in
x = agent(x)
File "D:\pyproject\agentscope\src\agentscope\agents\agent.py", line 294, in call
res = self.reply(*args, **kwargs)
File "D:\pyproject\agentscope\src\agentscope\agents\react_agent.py", line 164, in reply
prompt = self.model.format(self.memory.get_memory(), hint_msg)
File "D:\pyproject\agentscope\src\agentscope\models\ollama_model.py", line 269, in format
"content": system_content_template.format(
KeyError: 'index'
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: