-
Notifications
You must be signed in to change notification settings - Fork 352
add mcp-playground about new agent #618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: mcp
Are you sure you want to change the base?
Conversation
prev_chunk_type = "function" | ||
# faca_dic["content"] = faca_dic["content"] + f'\n\n**🎯 结果**\n```\n{chunk_content}\n```' | ||
yield gr.skip(), gr.skip(), gr.update(value=chatbot_value) | ||
# chatbot_value = generate_with_mcp( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这些代码不需要可以移除
mcp_servers["mcpServers"] = parse_mcp_config(mcp_config, enabled_mcp_servers) | ||
agent_executor = Agent( | ||
mcp=mcp_servers, llm=get_llm, instruction=sys_prompt) | ||
response = agent_executor.run("你好") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里的messages应该传入agent_executor.run()中,具体为:
agent_executor.run(
messages=messages,
stream=True,
seed=None,
)
mcp=mcp_servers, llm=get_llm, instruction=sys_prompt) | ||
response = agent_executor.run("你好") | ||
for chunk in response: | ||
response += chunk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsupported operand for response(generator) and chunk(list)
Change Summary
Related issue number
Checklist
pre-commit install
andpre-commit run --all-files
before git commit, and passed lint check.