Packages

An Elixir SDK for the Amp CLI - programmatic access to Amp's AI coding agent.

Current section

Files

Jump to
amp_sdk lib amp_sdk usage.ex
Raw

lib/amp_sdk/usage.ex

defmodule AmpSdk.Usage do
@moduledoc "Usage and credit balance via the Amp CLI."
alias AmpSdk.{CLIInvoke, Error}
@spec info() :: {:ok, String.t()} | {:error, Error.t()}
def info do
CLIInvoke.invoke(["usage"])
end
end