Skip to content

Type Alias: PartialSkillDef

PartialSkillDef = Partial<Skill>

Defined in: types.ts:1682

Input type for defining the default chat skill via PackDefinitionBuilder.setChatSkill or bench initialization skill via PackDefinitionBuilder.setBenchInitializationSkill.

All fields are optional, allowing you to override only the fields you care about. Fields that are not provided will use default values at runtime.

Default tools (when tools is omitted):

  • ToolType.Pack — the pack's own formulas (always included)
  • ToolType.Knowledge — search over the pack's sync table data (included when the pack defines sync tables)

If you specify tools, the defaults above are replaced entirely with your list.

Example

// Override just the prompt — default tools are preserved
pack.setChatSkill({
  prompt: "You are a helpful assistant.",
});

// Override tools — replaces the defaults entirely
pack.setChatSkill({
  tools: [
    { type: coda.ToolType.Pack },
    { type: coda.ToolType.ContactResolution },
  ],
});