View Source Agens.Message (agens v0.1.1)
The Message struct defines the details of a message passed between Agents, Jobs and Servings.
Fields
:parent_pid
- The process identifier of the parent/caller process.:input
- The input string for the message.:prompt
- The prompt string orAgens.Agent.Prompt
struct for the message.:result
- The result string for the message.:agent_name
- The name of theAgens.Agent
.:serving_name
- The name of theAgens.Serving
.:job_name
- The name of theAgens.Job
.:job_description
- The description of theAgens.Job
to be added to the LM prompt.:step_index
- The index of theAgens.Job.Step
.:step_objective
- The objective of theAgens.Job.Step
to be added to the LM prompt.
Summary
Functions
Sends an Agens.Message
to an Agens.Agent
Types
@type t() :: %Agens.Message{ agent_name: atom() | nil, input: String.t() | nil, job_description: String.t() | nil, job_name: atom() | nil, parent_pid: pid() | nil, prompt: String.t() | Agens.Agent.Prompt.t() | nil, result: String.t() | nil, serving_name: atom() | nil, step_index: non_neg_integer() | nil, step_objective: String.t() | nil }
Functions
Sends an Agens.Message
to an Agens.Agent