Reference Implementations

Operations

human.support-triage

intermediate

Support ticket triage muscle: classify ticket, re-rank KB docs, draft resolution. Published as agent via publishAsAgent: true.

APIs Used

ctx.promptsctx.memory.executionctx.resourcesctx.llmctx.provenance

Capabilities Required

support/triage

What this demonstrates

  • 1ctx.prompts.load() for classify and kb-rerank — no inline prompts
  • 2ctx.memory.execution for classification scratch within single invocation
  • 3ctx.resources for ticket and ticket_comment; full provenance with cost
  • 4Muscle-as-agent pattern: publishAsAgent: true for discoverability
typescript
// Source could not be loaded at build time.
// View on GitHub: https://github.com/human-protocol/human/blob/main/packages/agents-reference/src/agents/packages/agents-reference/src/agents/support/support-triage.ts

Run the tests

From monorepo root

$ pnpm test:agents:reference

$ pnpm test:agents:reference:verbose

The reference suite runs all 23 agents with createMockExecutionContext(), verifying every ctx.* API call and output shape.

See Also