View Source Agens.Agent.Prompt (agens v0.1.1)

The Prompt struct represents an advanced prompt for an Agent process.

All fields are optional and will only be included in the final prompt if they are not nil.

Fields

  • :identity - a string representing the purpose and capabilities of the agent
  • :context - a string representing the goal or purpose of the agent's actions
  • :constraints - a string listing any constraints or limitations on the agent's actions
  • :examples - a list of example inputs and outputs for the agent
  • :reflection - a string representing any additional considerations or reflection the agent should make before returning results

Summary

Types

@type t() :: %Agens.Agent.Prompt{
  constraints: String.t() | nil,
  context: String.t() | nil,
  examples: String.t() | nil,
  identity: String.t() | nil,
  reflection: String.t() | nil
}