Reference Implementationsintermediate
Operations
human.support-triage
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.provenanceCapabilities Required
support/triageWhat 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
Source
View on GitHubtypescript
// 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.tsRun 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
SDK Reference