Current section
Files
Jump to
Current section
Files
lib/snakebridge_generated/vllm/tracing/base_span_attributes.ex
# Generated by SnakeBridge v0.15.0 - DO NOT EDIT MANUALLY
# Regenerate with: mix compile
# Library: vllm 0.14.0
# Python module: vllm.tracing
# Python class: BaseSpanAttributes
defmodule Vllm.Tracing.BaseSpanAttributes do
@moduledoc """
Wrapper for Python class BaseSpanAttributes.
"""
def __snakebridge_python_name__, do: "vllm.tracing"
def __snakebridge_python_class__, do: "BaseSpanAttributes"
def __snakebridge_library__, do: "vllm"
@opaque t :: SnakeBridge.Ref.t()
@doc """
Constructs `BaseSpanAttributes`.
"""
@spec new() :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(keyword()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), keyword()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term()) :: {:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), term()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), term(), term()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), term(), term(), term()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
@spec new(term(), term(), term(), term(), term(), term(), term(), term(), keyword()) ::
{:ok, SnakeBridge.Ref.t()} | {:error, Snakepit.Error.t()}
def new() do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [], [])
end
def new(opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [], opts)
end
def new(arg1) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1], [])
end
def new(arg1, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1], opts)
end
def new(arg1, arg2) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2], [])
end
def new(arg1, arg2, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2], opts)
end
def new(arg1, arg2, arg3) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2, arg3], [])
end
def new(arg1, arg2, arg3, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2, arg3], opts)
end
def new(arg1, arg2, arg3, arg4) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2, arg3, arg4], [])
end
def new(arg1, arg2, arg3, arg4, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2, arg3, arg4], opts)
end
def new(arg1, arg2, arg3, arg4, arg5) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2, arg3, arg4, arg5], [])
end
def new(arg1, arg2, arg3, arg4, arg5, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(__MODULE__, :__init__, [arg1, arg2, arg3, arg4, arg5], opts)
end
def new(arg1, arg2, arg3, arg4, arg5, arg6) do
SnakeBridge.Runtime.call_class(
__MODULE__,
:__init__,
[arg1, arg2, arg3, arg4, arg5, arg6],
[]
)
end
def new(arg1, arg2, arg3, arg4, arg5, arg6, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(
__MODULE__,
:__init__,
[arg1, arg2, arg3, arg4, arg5, arg6],
opts
)
end
def new(arg1, arg2, arg3, arg4, arg5, arg6, arg7) do
SnakeBridge.Runtime.call_class(
__MODULE__,
:__init__,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7],
[]
)
end
def new(arg1, arg2, arg3, arg4, arg5, arg6, arg7, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(
__MODULE__,
:__init__,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7],
opts
)
end
def new(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) do
SnakeBridge.Runtime.call_class(
__MODULE__,
:__init__,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
[]
)
end
def new(arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, opts)
when is_list(opts) and
(opts == [] or
(is_tuple(hd(opts)) and tuple_size(hd(opts)) == 2 and is_atom(elem(hd(opts), 0)))) do
SnakeBridge.Runtime.call_class(
__MODULE__,
:__init__,
[arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8],
opts
)
end
end