Skip to main content
Starting with version 2.0.1, the Bundles and Instances endpoints this page uses are removed from the platform. To run agents with packages, deployments, and sessions instead, see Migrating from Bundles and Instances.

Creating an Agent Using an Agent Blueprint

Use the Create Bundle endpoint to create an agent bundle using an agent blueprint.
This example creates an agent based on the Operational State Monitoring (OSM) agent blueprint, giving the new agent the name “My agent name”, providing a Safetensors file as a fit classifier artifact, and providing several custom configuration options (window_size, step_size, sample_rate_interval_tolerance, and max_temporal_gap).

Running an Agent

Once an agent has been created, you can run it using the Run Bundle endpoint.
This code uses the agent to process the data in a CSV file named sample-data.csv which has already been uploaded to the Archetype Platform using the Files API.