Skip to main content

Managing Agents

Agents are the core building block of the Meibel platform. Each agent encapsulates a system prompt, model configuration, and optional datasources. This guide walks through the full lifecycle: creating, inspecting, updating, publishing, versioning, and deleting agents.

Create an agent

Create a new agent definition by providing a name, description, and system prompt.
The response includes the agent’s id, display_name, description, instructions, and timestamps. Use the id for all subsequent operations.

Get agent details

Retrieve the full configuration and metadata for an existing agent.

Update an agent

Modify an agent’s name, description, system prompt, or other configuration fields. Only the fields you include in the request body are changed.

Publish an agent

Publishing creates an immutable snapshot of the agent’s current configuration. Include a commit message to document what changed.
Publishing does not affect the draft agent. You can continue editing the draft and publish again when ready.

List agent versions

Retrieve all published versions for an agent. Versions are returned in reverse chronological order.

Delete an agent

Permanently remove an agent and all its published versions. This action cannot be undone.
Deleting an agent removes all published versions and terminates any active sessions associated with it.