The watch command (Documentation Index
Fetch the complete documentation index at: https://docs.baseten.co/llms.txt
Use this file to discover all available pages before exploring further.
truss chains watch) combines
the best of local development and full deployment. watch lets you run on an
exact copy of the production hardware and interface but gives you live code
patching that lets you test changes in seconds without creating a new
deployment.
To use truss chains watch:
- Push a chain in development mode with
truss chains push --watch SOURCE. This creates a development deployment and starts watching in one step. You can also create the deployment separately and then runtruss chains watch SOURCEto attach the watcher. - Each time you edit a file and save the changes, the watcher patches the remote deployments. Updating the deployments might take a moment, but is generally much faster than creating a new deployment.
- You can call the chain with test data via
cURLor the playground dialogue in the UI and observe the result and logs. - Iterate steps 2. and 3. until your chain behaves in the desired way.