-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add new YAML file #566
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: main
Are you sure you want to change the base?
Add new YAML file #566
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,221 @@ | ||||||
| graph: | ||||||
| id: demo_MathHelper | ||||||
| description: 'A math assistant workflow. Able to answer college-level math questions and provide similar questions.' | ||||||
| log_level: DEBUG | ||||||
| is_majority_voting: false | ||||||
| nodes: | ||||||
| - id: Read | ||||||
| type: agent | ||||||
| config: | ||||||
| name: | ||||||
| provider: | ||||||
| role: |- | ||||||
| 你是一名数学高手,擅长解决大学数学问题。 | ||||||
| 你的任务是:接受用户给出的数学问题,分析题意,拆解已知条件和所求,分条陈述给下一个节点。 | ||||||
| 注意:只需分析题意和所求,不要给出解题步骤和解题方法。 | ||||||
| base_url: ${BASE_URL} | ||||||
| api_key: ${API_KEY} | ||||||
| params: {} | ||||||
| tooling: [] | ||||||
| thinking: null | ||||||
| memories: [] | ||||||
| retry: null | ||||||
| description: '' | ||||||
| context_window: 3 | ||||||
| log_output: true | ||||||
| - id: Solve | ||||||
| type: agent | ||||||
| config: | ||||||
| name: | ||||||
| provider: | ||||||
|
||||||
| role: |- | ||||||
| 你是一个数学高手,擅长解决大学数学问题。 | ||||||
| 你的任务是:根据提供的拆解后的已知条件和所求,深入分析,得出一个相对快捷的解法,并将解题步骤陈述给下一个节点。 | ||||||
| 注意:不要给出完整的解法,只需给出思路和解题步骤 | ||||||
| base_url: ${BASE_URL} | ||||||
| api_key: ${API_KEY} | ||||||
| params: {} | ||||||
| tooling: [] | ||||||
| thinking: null | ||||||
| memories: [] | ||||||
| retry: null | ||||||
| description: '' | ||||||
| context_window: 3 | ||||||
| log_output: true | ||||||
| - id: Check | ||||||
| type: agent | ||||||
| config: | ||||||
| name: | ||||||
| provider: | ||||||
|
||||||
| role: | | ||||||
| 你是一个数学高手,擅长解决大学数学问题。 | ||||||
| 你的任务是:检查给出的解法是否能真正解决该问题,如果解法正确,不用做任何操作,如果解法有错误,直接给出修改后的解法。 | ||||||
|
||||||
| 你的任务是:检查给出的解法是否能真正解决该问题,如果解法正确,不用做任何操作,如果解法有错误,直接给出修改后的解法。 | |
| 你的任务是:检查给出的解法是否能真正解决该问题。请始终输出【最终确认后的完整解题步骤】:如果解法正确,请在充分理解的基础上用你自己的话完整、清晰地复述或略微润色该解题步骤;如果解法有错误或不完整,请直接给出修改后的、正确且完整的解题步骤。 |
Copilot
AI
Mar 6, 2026
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.
Agent node config has empty name and provider. AgentConfig.from_dict requires a non-empty model name and a provider, so this workflow will fail validation/loading. Set both fields to valid values (or use existing env-var pattern like name: ${MODEL_NAME}) for this node.
Copilot
AI
Mar 6, 2026
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.
Agent node config has empty name and provider. AgentConfig.from_dict requires a non-empty model name and a provider, so this workflow will fail validation/loading. Set both fields to valid values (or use existing env-var pattern like name: ${MODEL_NAME}) for this node.
Copilot
AI
Mar 6, 2026
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.
Human View tells users to input “stop”, but the only outgoing conditional edge from this node matches “one more”. If the user types “stop”, no edge will fire and the workflow may stall. Add an explicit “stop” (or default) edge from Human View to a terminal node and/or set graph.end appropriately.
Copilot
AI
Mar 6, 2026
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.
Print always triggers Rethink, which means the workflow will generate a “similar question” even when the user didn’t ask for one. This conflicts with the Human View instructions that say the user should type “one more” to see another problem. Consider routing Print → Human View first, and only trigger Rethink when the keyword condition matches.
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.
Agent node config has empty
nameandprovider.AgentConfig.from_dictrequires a non-empty modelnameand aprovider, so this workflow will fail validation/loading. Set both fields to valid values (or use existing env-var pattern likename: ${MODEL_NAME}) for this node.