Current section

Files

Jump to
dspex lib snakebridge_generated dspy dsp utils null_context_manager.ex
Raw

lib/snakebridge_generated/dspy/dsp/utils/null_context_manager.ex

# Generated by SnakeBridge v0.14.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.1.2
# Python module: dspy.dsp.utils
# Python class: NullContextManager
defmodule Dspy.Dsp.Utils.NullContextManager do
@moduledoc """
Wrapper for Python class NullContextManager.
"""
def __snakebridge_python_name__, do: "dspy.dsp.utils"
def __snakebridge_python_class__, do: "NullContextManager"
def __snakebridge_library__, do: "dspy"
@opaque t :: SnakeBridge.Ref.t()
@doc """
Initialize self. See help(type(self)) for accurate signature.
## Parameters
- `dummy_resource` (term() default: None)
"""
@spec new(list(term()), keyword()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
def new(args, opts \\ []) do
{args, opts} = SnakeBridge.Runtime.normalize_args_opts(args, opts)
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [] ++ List.wrap(args), opts)
end
end