When your agent decides to use a Tool, its execute() function receives a hash of arguments and a Context object. In addition to information about the current execution, the Context object also contains hooks into various services provided by the Ardent platform.
ai
AiClient
An AiClient object, which lets the tool call out to language models.
db
Database
A Database object, which lets you read and write data to a SQLite database scoped to the current Task.
kv
KeyValueStore
A KeyValueStore object, which lets you read and write data to a key-value store scoped to the current Task.
secrets
SecretStore
A SecretStore object, which lets you access secrets defined in your workspace.