Skip to content

Optional final generation after stopAtToolNames tool call #2269

@camidagreat

Description

@camidagreat

Describe the feature

Currently, we are using stopAtToolNames inside toolUseBehavior to end an agent run when specific tools are called. We would love to be able to have optional behavior to still have the agent make one more generation after the final tool call, but prohibit additional tools from being called.

Our current workaround is using the parameters object on the tool call to define the last generation, but this makes it harder for us to keep our tools dry and reusable across agents.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions