Docs to come
Agent Studio can be developed and tested locally in a Docker container. When developing locally,
a CAI project must still be created and referenced to your local environment in order to deploy and track
specific resources accessed via the cmlapi. Follow the instructions in env.example to see how to
prepare your local development.
- Docker installed and running
- VS Code or Cursor with Dev Containers extension
- Go to a CAI workbench instance
- Follow instructions in
env.exampleto pull env vars from a session into your local - Grab
/etc/ssl/certs/ca-certificates.crtfrom a session and save it to your working directory asca-certificates.crt
- Open the project in VS Code or Cursor
- Press
Ctrl+Shift+P(orCmd+Shift+Pon Mac) - Select "Dev Containers: Rebuild and Reopen in Container"
- Wait for the container to build and start
Bootstrapping your local development environment will make sure that the first few steps of the AMP installation are completed such as pulling down Node and other dependencies for development. Once inside the dev container, run:
# Option 1
. bin/bootstrap
# Option 2
source bin/bootstrapOnce inside the dev container, run:
./bin/local-dev.shEdit .devcontainer/devcontainer.json and add extensions to the customizations.vscode.extensions array.
Update the containerEnv section in .devcontainer/devcontainer.json.