LettaAPI.Connection (letta_api v1.0.0)
Handle Tesla connections for LettaAPI.
Additional middleware can be set in the compile-time or runtime configuration:
config :tesla, LettaAPI.Connection,
base_url: "http://letta.localhost",
adapter: Tesla.Adapter.Hackney
The default base URL can also be set as:
config :letta_api,
:base_url, "http://letta.localhost"
Summary
Functions
Returns the default adapter for this API.
Returns fully configured middleware for passing to Tesla.client/2.
Configure a client with no authentication.
Configure a client that may have authentication.
Forward requests to Tesla.
Types
Functions
Returns the default adapter for this API.
@spec middleware(options()) :: [Tesla.Client.middleware()]
Returns fully configured middleware for passing to Tesla.client/2.
@spec new() :: Tesla.Env.client()
Configure a client with no authentication.
Returns
Tesla.Env.client
@spec new(options()) :: Tesla.Env.client()
Configure a client that may have authentication.
Parameters
options
: a keyword list of LettaAPI.Connection.options.
Returns
Tesla.Env.client
@spec request(Tesla.Client.t(), [Tesla.option()]) :: Tesla.Env.result()
Forward requests to Tesla.