Current section
Files
Jump to
Current section
Files
lib/snakebridge_generated/dspy/utils/status_message.ex
# Generated by SnakeBridge v0.16.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.2.0
# Python module: dspy.utils
# Python class: StatusMessage
defmodule Dspy.Utils.StatusMessage do
@moduledoc """
Dataclass that wraps a status message for status streaming.
"""
def __snakebridge_python_name__, do: "dspy.utils"
def __snakebridge_python_class__, do: "StatusMessage"
def __snakebridge_library__, do: "dspy"
@opaque t :: SnakeBridge.Ref.t()
@doc """
Initialize self. See help(type(self)) for accurate signature.
## Parameters
- `message` (String.t())
"""
@spec new(String.t(), keyword()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
def new(message, opts \\ []) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [message], opts)
end
end