LemonGateway.Types.Job (lemon_gateway v0.1.0)

View Source

Internal engine-facing compatibility type for gateway run execution.

Public router and gateway submission code should use LemonCore.ExecutionCommand. Job remains inside gateway run execution and in compatibility helpers while engines still speak this shape.

Fields

  • :run_id - Unique run identifier (UUID)
  • :session_key - Stable session key for routing and state
  • :prompt - User prompt text (or synthesized prompt)
  • :engine_id - Resolved engine identifier
  • :images - Runtime-only image blocks forwarded to native Lemon providers
  • :cwd - Working directory (optional)
  • :resume - Resume token for session continuation
  • :lane - Execution lane (:main, :subagent, :background_exec)
  • :tool_policy - Tool execution policy map
  • :meta - Additional metadata (origin, channel info, etc.)

Summary

Types

t()

@type t() :: %LemonGateway.Types.Job{
  cwd: String.t() | nil,
  engine_id: LemonGateway.Types.engine_id() | nil,
  images: [map()],
  lane: LemonGateway.Types.lane() | nil,
  meta: map() | nil,
  prompt: String.t() | nil,
  resume: LemonCore.ResumeToken.t() | nil,
  run_id: String.t() | nil,
  session_key: String.t() | nil,
  tool_policy: map() | nil
}