Skip to content

Add a "Meta" property to the tool results#1110

Merged
dgageot merged 3 commits intodocker:mainfrom
rumpl:tool-meta
Dec 16, 2025
Merged

Add a "Meta" property to the tool results#1110
dgageot merged 3 commits intodocker:mainfrom
rumpl:tool-meta

Conversation

@rumpl
Copy link
Copy Markdown
Member

@rumpl rumpl commented Dec 15, 2025

This makes it possible for the tools to send additional data that is not meant to be sent to the LLM. We use this in the case of the todo toolset to always send the current state of all of the todos. With this meta we no longer have to parse the arguments on the TUI side.

@rumpl rumpl requested a review from a team as a code owner December 15, 2025 22:02
Comment thread pkg/runtime/event.go
ToolCall tools.ToolCall `json:"tool_call"`
ToolDefinition tools.Tool `json:"tool_definition"`
Response string `json:"response"`
Result *tools.ToolCallResult `json:"result,omitempty"`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This one is weird... For now, at some point in the future we will be able to remove the Response, once no other parts depend on it

@rumpl rumpl changed the title ///Add a "Meta" property to the tool results Add a "Meta" property to the tool results Dec 15, 2025
This makes it possible for the tools to send additional data that is not
meant to be sent to the LLM. We use this in the case of the todo toolset
to always send the current state of all of the todos. With this meta we
no longer have to parse the arguments on the TUI side.

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
@dgageot dgageot merged commit 1422d70 into docker:main Dec 16, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants