Skip to content
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

路由函数正常 但是图的运行顺序出错 #3102

Open
4 tasks done
The-uyu opened this issue Jan 19, 2025 · 2 comments
Open
4 tasks done

路由函数正常 但是图的运行顺序出错 #3102

The-uyu opened this issue Jan 19, 2025 · 2 comments
Labels
invalid This doesn't seem right

Comments

@The-uyu
Copy link

The-uyu commented Jan 19, 2025

Checked other resources

  • This is a bug, not a usage question. For questions, please use GitHub Discussions.
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

workflow.add_conditional_edges(
    "tools",
    check_ToM,
    {
        # 达到指定次数,更新ToM
        "tom": "tom",
        # 返回agent
        "agent": "agent",
    },
)

Error Message and Stack Trace (if applicable)

Description

Image
我的路由函数都输出了正确的路由为什么没有按照预期的顺序运行?

System Info

因为错误的模型运行顺序导致了错误如下
ValueError: {'message': 'Provider returned error', 'code': 400, 'metadata': {'raw': {'__kind': 'OK', 'data': '{\n "error": {\n "message": "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_Rad8sO1nwvG0fRKww4DlSJBM",\n "type": "invalid_request_error",\n "param": "messages.[15].role",\n "code": null\n }\n}'}, 'provider_name': 'OpenAI'}}

@The-uyu
Copy link
Author

The-uyu commented Jan 19, 2025

我想知道为什么路由函数输出正确的情况下还是来到了错误的结点

@gbaian10
Copy link
Contributor

Please provide a minimal reproducible example~~

@vbarda vbarda added the invalid This doesn't seem right label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants