Current section
Files
Jump to
Current section
Files
lib/snakebridge_generated/dspy/predict/parameter/parameter.ex
# Generated by SnakeBridge v0.13.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.1.2
# Python module: dspy.predict.parameter
# Python class: Parameter
defmodule Dspy.Predict.Parameter do
@moduledoc """
Wrapper for Python class Parameter.
"""
def __snakebridge_python_name__, do: "dspy.predict.parameter"
def __snakebridge_python_class__, do: "Parameter"
def __snakebridge_library__, do: "dspy"
@opaque t :: SnakeBridge.Ref.t()
@doc """
Initialize self. See help(type(self)) for accurate signature.
## Parameters
- `args` (term())
- `kwargs` (term())
"""
@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