Current section
Files
Jump to
Current section
Files
lib/snakebridge_generated/dspy/streaming/status_message.ex
# Generated by SnakeBridge v0.15.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.1.2
# Python module: dspy.streaming
# Python class: StatusMessage
defmodule Dspy.Streaming.StatusMessage do
@moduledoc """
Dataclass that wraps a status message for status streaming.
"""
def __snakebridge_python_name__, do: "dspy.streaming"
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