Dspy.Settings (dspy v0.1.0)

View Source

Global configuration management for DSPy.

Maintains settings like language model configuration, generation parameters, and optimization settings in a GenServer for thread-safe access.

Summary

Functions

Returns a specification to start this module under a supervisor.

Configure global DSPy settings.

Get current settings.

Get a specific setting.

Types

t()

@type t() :: %Dspy.Settings{
  cache: boolean(),
  experimental: [atom()],
  lm: Dspy.LM.t() | nil,
  max_tokens: pos_integer(),
  temperature: float()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

configure(opts)

Configure global DSPy settings.

get()

Get current settings.

get(key)

Get a specific setting.

start_link(opts \\ [])