View Source Agens.Message (agens v0.1.3)
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. Required.:prompt- The final prompt string constructed forAgens.Serving.run/1.: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.Jobto be added to the LM prompt.:step_index- The index of theAgens.Job.Step.:step_objective- The objective of theAgens.Job.Stepto be added to the LM prompt.
Summary
Functions
Sends an Agens.Message to an Agens.Agent or Agens.Serving.
Types
@type t() :: %Agens.Message{ agent_name: atom() | nil, input: String.t(), 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 or Agens.Serving.