Current section
Files
Jump to
Current section
Files
lib/snakebridge_generated/dspy/predict/predict/__init__.ex
# Generated by SnakeBridge v0.12.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: dspy 3.1.2
# Python module: dspy.predict.predict
defmodule Dspy.Predict.Predict do
@moduledoc """
Submodule bindings for `dspy.predict.predict`.
"""
def __snakebridge_python_name__, do: "dspy.predict.predict"
def __snakebridge_library__, do: "dspy"
@doc """
Recursively serialize a given object into a JSON-compatible format.
Supports Pydantic models, lists, dicts, and primitive types.
Parameters:
- `obj` (term())
Returns:
- `term()`
"""
@spec serialize_object(term(), keyword()) :: {:ok, term()} | {:error, Snakepit.Error.t()}
def serialize_object(obj, opts \\ []) do
SnakeBridge.Runtime.call(__MODULE__, :serialize_object, [obj], opts)
end
end