Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
MultiAgentWorkflow #17237
MultiAgentWorkflow #17237
Changes from 23 commits
ff9afa6
3f2574f
c992dd9
969b64a
ae072b8
be035d0
6974a9d
d91f93e
85b89af
faabe0d
e9fde68
81efcec
2d47771
ce758fb
4718dce
f2f2a1e
9151673
935e4ae
f527a05
d94d22f
347bda1
aa555a2
ee70508
0027c3a
9a89262
c63849f
96e458c
ef246fa
b848b4d
28e0fd7
51630f3
ca5ccef
0e022af
af46007
69ecac1
567e0e0
e19ad47
bc6d150
5a94bcc
2730014
2ece2c6
997ffa0
f5cb5b5
698ea1e
0b7a924
927c179
45f3c50
32c105a
e2b4866
25121f4
13d9455
519e158
312edd0
50bcf00
e563b51
26e3886
53a68d4
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
possible in Python to wrap FunctionTool automatically, e.g.?
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.
Could be possible, although now with FunctionTool and FunctionToolWithContext, I'll need to think a little harder about how to detect when each one is needed
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.
are these agents streaming dedicated events that can be shown in the UI (we're using this in create-llama).
There we're having the
AgentRunEvent
seehttps://github.com/run-llama/create-llama/blob/main/templates/components/multiagent/python/app/workflows/events.py
(ignore
to_response
- this is for conversion to vercel data streams, this concern can be done outside of this PR)here is an example using it to send the progress of tool calls:
https://github.com/run-llama/create-llama/blob/eec237c5feea1af9cdd5b276d34ebe3b8d0fd185/templates/components/multiagent/python/app/workflows/tools.py#L141
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.
Yes! That is the main intention for these events, to show progress in some UI.
I didn't capture the concept of "in progress" or "completed" with this, its mostly all just events at points in time (here's the agent input, here's the agent stream, here's the agent output, heres a tool im about to call, here's the tool output) -- I could refactor, but not sure if its needed or not
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.
you could then also add a helper that is printing the events in a nice way for examples: