Skip to content

Calling multiple tools to be run serially #3093

@ryx2

Description

@ryx2

Description

Inspired by https://blog.cloudflare.com/code-mode/, I'm wondering if we can have a model tool output mode that do multiple tools serially.

The way I want it to be:

(1 LLM call)
output: tool1 -> tool2(tool1.result.value1) -> tool3(tool2.result.value2 + tool1.result.value1)

as opposed to the current iterative structure which requires far more agent loops

(1 LLM call)
output: tool1
(1 LLM call)
output: tool1 -> tool2(tool1.result.value1)
(1 LLM call)
output: tool1 -> tool2(tool1.result.value1) -> tool3(tool2.result.value2 + tool1.result.value1)

since this LLM is definitely smart enough to pipe the outputs into the next tool call, one shot.

References

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions