#8652·omnigent

[Feature] Add a turn_final indicator to response policy context for end of agent chat

Author: ArshSiddiquiCreated Sep 30, 2026Updated Oct 1, 2026
LabelsFeaturecomp:servercomp:policiesP2-mediumtriaged

Problem or use case

Summary

The response policy is currently defined as being fired after the LLM's final assistant message. However, while testing this I noticed that this seems to be based on whenever the message itself gets flushed here in orchestration.py, which seems to also do a flush after a text response but before a tool is called (if one is being called). Certain policies may only want to run after the final response of the agent, not between these intermediary responses, so we may want a flag to indicate those terminal responses.

Proposed solution

I would like to propose a feature, or really just a flag, that specifies the final turn (before the LLM agent returns the conversation to you) in the context for the response PolicyEvent

Alternatives considered

No response

Harness

No response

Platform or device

No response

Harness mode

No response

Expected reach

None

Authentication type

No response