Skip to main content
persona.architect — /api/v1/developer/architect/agui. The Agent Architect is a conversational co-pilot that creates/edits Agents via tool calls on your behalf, reachable with just your Project’s machine credential — no Clerk session required.

How it differs from Chat

Ownership

Ownership follows the same dual-mode convention every other Developer Platform resource uses:
  • Omit externalUserId — the Architect builds/edits Agents owned by your whole Project (the SDK-reachable equivalent of a Project Admin managing the shared roster by hand).
  • Set externalUserId — the Architect builds/edits Agents owned by that one external user instead.

Methods

Both take ArchitectMessageOptions:
Note: there is no contextOverride or threadId option — the Architect has one implicit conversation per caller scope.

Interrupts and resuming

Same interrupt machinery as Chat. If the Architect pauses (e.g. confirming an upsert_agent tool call), sendMessage() returns a ChatResult with interrupt set; resume on the next call:
Structured run errors work the same way as Chat — result.error is a PersonaRunErrorEvent on a genuine failure.

Complete example

For a streaming build-your-own-UI version, use architect.stream(options) with the same event handling described in Chat.