Build and deploy your first Ardent agent.
Create an Ardent account
Choose a model
Add your API key as a secret
Install the Ardent CLI
ardent
command from anywhere on your machine.Create a new project
src/index.ts
file contains the code that will power your agent.node_modules
folder contains libraries that are used by your agent, including the Ardent SDK.ardent.jsonc
file contains configuration for your agent.package.json
file is used to track libraries and version information for your agent.src/index.ts
to src/index.js
.Edit your agent
src/index.ts
file and you should see something like this:index.ts
. You can structure your code however
you prefer, but every project has to export an instance of the Agent class from
its main entrypoint.By default, the Ardent CLI will expect the entrypoint to be src/index.ts
or src/index.js
,
but you can change this by setting the main field
in your project’s package.json
file.Start a dev session
ardent.jsonc
file.)Add a tool
index.ts
with the changes highlighted below:Create a task
Deploy your agent