Skip to main content

Function: exportAgentConfig()

exportAgentConfig(agentInstance, metadata?, options?): AgentExportConfig

Defined in: packages/agentos/src/api/agentExportCore.ts:170

Exports an agent's configuration as a portable object. Secrets are redacted unless options.redactSecrets is false.

Parameters​

agentInstance​

Agent

The agent (or agency) instance to export.

metadata?​

Optional human-readable metadata to attach.

author?​

string

description?​

string

name?​

string

tags?​

string[]

options?​

ExportAgentConfigOptions

Redaction options.

Returns​

AgentExportConfig

A portable AgentExportConfig object, built on a copy of the config.