AgentSea.Crew.Task (agentsea_crews v0.1.0)

Copy Markdown

A unit of work for a crew, with optional capability requirements and dependencies.

Summary

Functions

Render the task as the input string given to an agent.

Build a task, generating an id when one isn't supplied.

Types

priority()

@type priority() :: :low | :medium | :high | :critical

t()

@type t() :: %AgentSea.Crew.Task{
  context: map(),
  depends_on: [String.t()],
  description: String.t(),
  expected_output: String.t() | nil,
  id: String.t() | nil,
  priority: priority(),
  required_capabilities: [String.t()]
}

Functions

input(task)

@spec input(t()) :: String.t()

Render the task as the input string given to an agent.

new(attrs)

@spec new(keyword() | map()) :: t()

Build a task, generating an id when one isn't supplied.