Skip to main content

register()

Register the current agent with MeshAI. Must be called before start_heartbeat() or track_usage().
string
required
Agent framework: crewai, langchain, autogen, openai, anthropic, custom
string
LLM provider: openai, anthropic, google, nvidia, bedrock
string
Model identifier (e.g., gpt-4o, claude-sonnet-4-20250514)
string
Human-readable description of what the agent does
string
Team or project that owns this agent (used for cost attribution)
dict
Key-value metadata tags
Returns: Agent object with id, name, status, and all metadata.

list_agents()

List all agents in your tenant.
string
Filter by status: healthy, degraded, down, unknown
string
Filter by framework
string
Filter by team
integer
default:"20"
Number of results per page
integer
default:"0"
Number of results to skip
Returns: List of agent objects with pagination metadata.

get_agent()

Get a single agent by ID.
string
required
Agent ID
Returns: Agent object.

update_agent()

Update an agent’s metadata.
string
required
Agent ID
string
Updated description
string
Updated model provider
string
Updated model name
string
Updated team
dict
Updated tags (merges with existing)
Returns: Updated agent object.

delete_agent()

Delete an agent. The agent is removed from the active registry but remains in the audit trail.
string
required
Agent ID
Returns: Confirmation object.
Deleting an agent is irreversible. The agent’s historical data (cost, anomalies, audit events) is preserved but the agent can no longer send heartbeats or telemetry.