Skip to content

[FEATURE]: Allow tools to stop the agent loop via metadata #6289

@pschiel

Description

@pschiel

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Summary

By default, invoking a tool will trigger another assistant turn.

In some cases it's useful if the tool can terminate the agent loop, e.g. for task-complete signals, early exits or any other tool that should end the session without a follow-up model response.

(An example would be a speak tool, that provides a summary via TTS, which must stop the loop to prevent the agent responding to itself)

Feature proposal

  1. Allow tools to return a structured output { title?, output, metadata? } in addition to a plain string, to be able to set metadata
  2. A metadata flag that halts the loop

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestkilo-auto-fixAuto-generated label by Kilokilo-duplicateAuto-generated label by Kilokilo-triagedAuto-generated label by Kilo

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions