Current section

Files

Jump to
dspex lib snakebridge_generated dspy final_output.ex
Raw

lib/snakebridge_generated/dspy/final_output.ex

# Generated by SnakeBridge v0.16.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.2.0
# Python module: dspy
# Python class: FinalOutput
defmodule Dspy.FinalOutput do
@moduledoc """
Returned by interpreter.execute() when SUBMIT() is called.
This signals that the code execution loop should terminate and return
the contained output to the caller.
"""
def __snakebridge_python_name__, do: "dspy"
def __snakebridge_python_class__, do: "FinalOutput"
def __snakebridge_library__, do: "dspy"
@opaque t :: SnakeBridge.Ref.t()
@doc """
Initialize self. See help(type(self)) for accurate signature.
## Parameters
- `output` (term())
"""
@spec new(term(), keyword()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
def new(output, opts \\ []) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [output], opts)
end
end