Skip to content
Development
Agent

prompts

There is **no `getPromptByName`** — fetch via `node(id:)` or the `prompts(filter: PromptFilter, labelIds)` connection.

From plugin
phoenix
11k7 skills7 agents
Install
$ npx -y skills add arize-ai/phoenix --agent claude-code

How it fires

How this agent gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.

Context preview

The summary Claude sees to decide when to auto-load this agent.

There is **no `getPromptByName`** — fetch via `node(id:)` or the `prompts(filter: PromptFilter, labelIds)` connection.

Agent definition

prompts.md

Prompt, PromptVersion

Reaching a prompt

There is **no `getPromptByName`** — fetch via `node(id:)` or the `prompts(filter: PromptFilter, labelIds)` connection.

Prompt fields

  • `name`, `description`, `metadata`
  • `version(versionId: GlobalID, tagName: Identifier)` → `PromptVersion` — **call with no args to get the latest version**; pass `versionId` or `tagName` to pin one.
  • `promptVersions(first, after)` → `PromptVersionConnection`
  • `versionTags`, `labels`

PromptVersion fields

  • `modelName`, `modelProvider`
  • `templateType`, `templateFormat`
  • `template` — union `PromptStringTemplate | PromptChatTemplate`. Chat templates expose `messages { role content { ... } }`; string templates expose `template`.
  • `invocationParameters`, `tools`, `responseFormat`
  • `tags`, `isLatest`, `sequenceNumber`, `previousVersion`

Example

query LatestPrompt($id: ID!) {
  node(id: $id) {
    ... on Prompt {
      name
      version {
        modelName
        modelProvider
        template {
          ... on PromptChatTemplate { messages { role } }
          ... on PromptStringTemplate { template }
        }
      }
    }
  }
}
Ships withphoenix

AI Observability & Evaluation

Get the whole plugin