Skip to content

Examples for function composition #1566

Open
@HosseinAgha

Description

@HosseinAgha

Feature Description

Here you extensively talk about function composition and how model uses a function call result to immediately call the next function. I cannot find any examples that implement this pattern using the new streamUI API.

As far as I understand a single user call should result in multiple LLM calls and there is no way for LLMs to do this automatically. I currently call submitUserMessage action recursively in execute function of the first tool.
Is this a right approach? I'd be happy to contribute the example.

Do you plan to make this automatic? For example add an allowComposition parameter to some tools?

Use Case

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai/rscdocsImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions