View Source Agens.Agent.Config (agens v0.1.2)

The Config struct represents the configuration for an Agent process.

Fields

  • :name - The name of the Agent process.
  • :serving - The name of the Serving specified in Agens.Serving.Config.
  • :knowledge - The knowledge base or data source of the Agent. Default is nil. (Coming soon)
  • :prompt - The string or Agens.Agent.Prompt struct defining the Agent. Default is nil.
  • :tool - The module implementing the Agens.Tool behaviour for the Agent. Default is nil.

Summary

Types

@type t() :: %Agens.Agent.Config{
  knowledge: module() | nil,
  name: atom(),
  prompt: Agens.Agent.Prompt.t() | String.t() | nil,
  serving: atom(),
  tool: module() | nil
}