Skip to content

feat: add render_turn callback for dynamic agent configuration - #527

Open
dheerapat wants to merge 7 commits into
huggingface:mainfrom
dheerapat:agetn-turn-rerender
Open

feat: add render_turn callback for dynamic agent configuration#527
dheerapat wants to merge 7 commits into
huggingface:mainfrom
dheerapat:agetn-turn-rerender

Conversation

@dheerapat

Copy link
Copy Markdown

Agent loops currently lock the model, system prompt, and tool set for the entire run. There's no way to change what an agent can see or use between turns of a single conversation.

Workflows that need conditional capabilities, a support agent that only gets escalation tools after verifying a customer, or a triage agent that switches models mid-task, have to rebuild the harness between messages or reload it entirely.

@dheerapat dheerapat changed the title feat: Add render_turn callback for dynamic agent configuration feat: add render_turn callback for dynamic agent configuration Aug 1, 2026
@dheerapat
dheerapat marked this pull request as ready for review August 1, 2026 20:57
@dheerapat
dheerapat requested a review from alejandro-ao as a code owner August 1, 2026 20:57
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.

1 participant