LangChain.Agents.TheAccountant (langchainex v0.2.3)

TheAccountant is responsible for storing and retrieving usage and pricing reports

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback implementation for GenServer.init/1.

Query the stored reports by provider and model name

let's a provider store a price calculation for a run

Link to this section Functions

Link to this function

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback implementation for GenServer.init/1.

Link to this function

post_webhook(url, report)

Link to this function

query(provider, model_name)

Query the stored reports by provider and model name

let's a provider store a price calculation for a run