Current section
Files
Jump to
Current section
Files
lib/ex_bifrost/model/execute_tool_request.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.23.0 (https://openapi-generator.tech)
# using the Elixir SDK Generator template (https://github.com/houllette/elixir-sdk-generator).
# Do not edit this file manually — edit the templates and regenerate instead.
defmodule ExBifrost.Model.ExecuteToolRequest do
@moduledoc """
MCP tool execution request. The schema depends on the `format` query parameter: - `format=chat` or empty (default): Use `ChatAssistantMessageToolCall` schema - `format=responses`: Use `ResponsesToolMessage` schema
"""
@derive JSON.Encoder
defstruct [
:index,
:type,
:id,
:function,
:call_id,
:name,
:arguments,
:output,
:action,
:error
]
@type t :: %__MODULE__{
:index => any() | nil,
:type => any() | nil,
:id => any() | nil,
:function => ExBifrost.Model.CreateChatCompletion200ResponseChoicesInnerDeltaToolCallsInnerFunction.t(),
:call_id => any() | nil,
:name => any(),
:arguments => any() | nil,
:output => %{optional(String.t()) => any()} | nil,
:action => %{optional(String.t()) => any()} | nil,
:error => any() | nil
}
alias ExBifrost.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(
:function,
:struct,
ExBifrost.Model.CreateChatCompletion200ResponseChoicesInnerDeltaToolCallsInnerFunction
)
end
end