Organization Templates are only available on the Enterprise plan. Managing the organization’s manifest requires
org.templates.get and org.templates.set, which the default Org Admin role carries. Managing a workspace’s manifest requires workspace.templates.get and workspace.templates.set; Workspace Admins receive these by default on newly created organizations. On existing organizations, an org admin may need to add workspace.templates.* to the Workspace Admin role under Settings > Organization > Roles.How templates work
Templates are configured via a YAML manifest in Settings > Organization > Templates. The manifest has two parts:- Template definitions - Reusable blueprints for evaluators and charts
- Project templates - Which definitions to apply when a new project is created
Manifest structure
Evaluator definitions
Define evaluators undertemplate_definitions.metric. HoneyHive supports three evaluator types:
Common fields
Every evaluator definition supports these fields:Type-specific fields
Human evaluators
Human evaluators
Python evaluators
Python evaluators
The function has access to Python’s standard library and packages including
pandas, scikit-learn, jsonschema, sqlglot, and requests.LLM evaluators
LLM evaluators
Chart definitions
Define charts undertemplate_definitions.chart. Each chart specifies what to measure, how to aggregate, and how to filter.
Example chart definitions
Example chart definitions
Project templates
Theproject_templates section lists which definitions are applied when a project is created. Reference definitions by name:
Organization and workspace manifests
The organization has a templates manifest, and so does each workspace. A workspace gets a copy of the organization’s manifest when it is created, and new projects in that workspace start from the workspace’s copy. The workspace manifest’sconfig.merge_strategy decides whether the organization’s manifest still contributes:
A change to the organization’s manifest therefore reaches workspaces created afterward, and existing workspaces whose manifest merges. To change what new projects in an existing workspace start with, update that workspace’s manifest. Changing a manifest never changes existing projects.
Managing templates programmatically
You can read and replace a manifest with the control plane SDK or the CLI, for example to keep it in version control. Use a control plane API key withorg.templates.get and org.templates.set for the organization’s manifest, or workspace.templates.get and workspace.templates.set for a workspace’s.
This example reads the organization’s manifest, then replaces it with the contents of templates.yaml. Set ORG_ID to your organization ID, shown on the organization’s API Keys settings page.
client.workspaceTemplates or honeyhive workspace-templates with the workspace ID.
Each update replaces the whole manifest. The content is validated first, and an invalid manifest returns 400. When an API key sends content identical to the current version, no new version is saved and the current version is returned, so applying the same file repeatedly is safe. The comparison is on the exact text. The CLI example’s $(cat templates.yaml) drops the file’s trailing newlines and the TypeScript example keeps them, so applying one file through both saves a new version.
A key with a .set permission decides what future projects start with. See Template permissions reach future projects before issuing one.