Packages

Elixir client library for the Letta AI API, providing comprehensive access to AI agent functionality including memory management, conversation handling, and tool integration.

Current section

Files

Jump to
letta_api lib letta_api model mcp_tool.ex
Raw

lib/letta_api/model/mcp_tool.ex

# NOTE: This file is auto generated by OpenAPI Generator 7.13.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule LettaAPI.Model.McpTool do
@moduledoc """
A simple wrapper around MCP's tool definition (to avoid conflict with our own)
"""
@derive JSON.Encoder
defstruct [
:name,
:description,
:inputSchema
]
@type t :: %__MODULE__{
:name => String.t,
:description => LettaAPI.Model.Description.t | nil,
:inputSchema => %{optional(String.t) => any()}
}
alias LettaAPI.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:description, :struct, LettaAPI.Model.Description)
|> Deserializer.deserialize(:inputSchema, :map, LettaAPI.Model.AnyType)
end
end