Skip to content

Conversation

@krissetto
Copy link
Contributor

@krissetto krissetto commented Sep 18, 2025

Allows users to set a max_iterations value in their agent config, and creates a max_iterations_reached event that can be consumed by clients.

If max_iterations is not explicitly set, it is considered to be unlimited

Example config:

version: 2

agents:
  root:
    model: dmr/ai/smollm3:latest
    description: Bob
    instruction: You are a helpful AI assistant named "Bob"
    max_iterations: 5
    toolsets:
      - type: shell

Screenshot

Screenshot 2025-09-18 at 12 16 10

closes #227

Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
@krissetto krissetto requested a review from a team as a code owner September 18, 2025 10:29
Copy link
Member

@rumpl rumpl left a comment

Choose a reason for hiding this comment

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

Neat

@krissetto krissetto merged commit 4d627cc into docker:main Sep 18, 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.

Ability to define max iterations on an agent

2 participants