Current section

Files

Jump to
dspex lib snakebridge_generated dspy primitives python_interpreter final_output.ex
Raw

lib/snakebridge_generated/dspy/primitives/python_interpreter/final_output.ex

# Generated by SnakeBridge v0.15.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.1.2
# Python module: dspy.primitives.python_interpreter
# Python class: FinalOutput
defmodule Dspy.Primitives.PythonInterpreter.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.primitives.python_interpreter"
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