symfonic.agent.presented_agent¶
presented_agent ¶
Opt-in presentation bridge for the public Agent.
Agent.run returns the model's raw reply. The legacy engine returned it with
extraction directives and HMS citation tags removed. PresentedAgent wraps
any object with the Agent run/stream shape and applies that
transformation without changing the default Agent output. The kernel has
already stripped complete XML blocks before this adapter runs; for an XML
block in mid-text it leaves whitespace differently from legacy, so this is
not by itself full visible-output parity for a CLI cutover.
Extraction ops visible to this adapter are handed to on_extraction once
per turn; complete XML consumed upstream is not delivered to that hook. This
port does not write ops anywhere. Persistence remains a separate concern.