Wardrik. Agents
(wardrik_protocol v0.1.0-rc.1)
Copy Markdown
Operations on every agent the scope can see.
Wardrik.Agents.list(scope, resources: ["acme/agent/*"])
#=> {:ok, [%Wardrik.Agent{id: "acme/triage", status: :idle, node: "wardrik@box1", ...}]}
Summary
Functions
Stop what every agent the patterns cover is doing
Forget every agent the patterns cover
List the agents the patterns cover
Functions
@spec cancel(Wardrik.Scope.t(), term()) :: term() | :ok | {:error, Wardrik.Error.t()}
Stop what every agent the patterns cover is doing
POST /v1/agents/cancel
@spec forget(Wardrik.Scope.t(), term()) :: term() | :ok | {:error, Wardrik.Error.t()}
Forget every agent the patterns cover
Each agent goes as agent.forget takes it: stopped, with its conversation, definition and triggers deleted.
DELETE /v1/agents
@spec list(Wardrik.Scope.t(), term()) :: term() | :ok | {:error, Wardrik.Error.t()}
List the agents the patterns cover
GET /v1/agents