WardrikDaemon.CLI.Follow (wardrik_daemon v0.1.0-rc.1)

Copy Markdown

Prints an agent's events as they happen.

Each event is printed as lines, by WardrikDaemon.Console.Printer, or with --json as the CloudEvent the HTTP API streams.

  • turn/3 asks an agent something, then follows the run that answers it until it ends or waits on a person.
  • events/2 follows everything the agent does until Ctrl-C.

Summary

Functions

Follows what agent does until Ctrl-C.

Asks agent text, then follows the run that answers it until it ends or waits on a person. Gives up after ten minutes with nothing new.

Functions

events(cx, agent)

@spec events(WardrikDaemon.CLI.Context.t(), String.t()) :: :ok | {:error, String.t()}

Follows what agent does until Ctrl-C.

turn(cx, agent, text)

@spec turn(WardrikDaemon.CLI.Context.t(), String.t(), String.t()) ::
  :ok | {:error, String.t()}

Asks agent text, then follows the run that answers it until it ends or waits on a person. Gives up after ten minutes with nothing new.