Jido.Agent.Directive.Enqueue (Jido v1.1.0-rc.2)

View Source

Directive to enqueue a new instruction

Summary

Functions

Creates a new Enqueue directive from an Instruction struct.

Types

t()

@type t() :: %Jido.Agent.Directive.Enqueue{
  action: atom(),
  context: map(),
  opts: keyword(),
  params: map()
}

Functions

new(instruction)

@spec new(Jido.Instruction.t()) :: t()

Creates a new Enqueue directive from an Instruction struct.

Parameters

  • instruction - %Instruction{} struct to convert to directive

Returns

  • %Enqueue{} - New enqueue directive with instruction fields