Skip to main content

invoker.once

Once invoker – runs an agent exactly once and terminates the runtime.

OnceInvoker Objects

class OnceInvoker(BaseInvoker)

Invoker for once triggers.

When invoked the following steps execute:

  1. Emit an agent-started event.
  2. Run the agent adapter's run method with the trigger prompt.
  3. Emit an agent-output event carrying the output summary.
  4. Request runtime termination (best-effort).