Function exportAgentConfig

  • 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.

    • Optional metadata: {
          name?: string;
          description?: string;
          author?: string;
          tags?: string[];
      }

      Optional human-readable metadata to attach.

      • Optional name?: string
      • Optional description?: string
      • Optional author?: string
      • Optional tags?: string[]
    • Optional options: ExportAgentConfigOptions

      Redaction options.

    Returns AgentExportConfig

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