-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Description
Is your feature request related to a problem? Please describe.
I'm displaying a tree of tool calls (i.e. a tool can call its sub-tools or sub-agents), so I need a way for sub-tool calls to refer to their parent tool call.
While there are various ways to generate a UUID and pass it down to tool functions, it is not feasible to persist those IDs into the ChatMessages => It's not feasible to reconstruct the conversation UI from the result ChatMessages.
Imagine a UI that displays:
- User message
- Assistant message 1
- Tool 1
i. Tool 1a
ii. Tool 1b - Assistant message 2
- Tool 2
=> Need a way to persist Tool 1a and Tool 1b that can
- Link them to their parent: Tool 1
- Reconstruct the whole conversation (including User message, Assistant message 1, Assistant message 2) in the correct order
Describe the solution you'd like
Either
Metadata
Metadata
Assignees
Labels
No labels
