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

rfc: bind_tools(response_format) #29051

Draft
wants to merge 1 commit into
base: bagatur/used_parsed
Choose a base branch
from

Conversation

baskaryan
Copy link
Collaborator

@baskaryan baskaryan commented Jan 7, 2025

llm = ChatOpenAI()  # ChatAnthropic
structured_llm = llm.bind_tools([...], response_format={...})
structured_llm.invoke(...)
# -> AIMessage(content="...", tool_calls=[...], parsed={...})

Copy link

vercel bot commented Jan 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Jan 7, 2025 0:12am

)
drop = tool_call["id"]
break
message.tool_calls = [tc for tc in message.tool_calls if tc["id"] != drop]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to generate multiple parallel tool calls to the response_format tool?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Internal
Development

Successfully merging this pull request may close these issues.

2 participants