Files
sausage/extensions/models/api.ts
T

9 lines
685 B
TypeScript

/** Model selection and definition-based conversation creation for coordination extensions. */
import { defineDoc } from '@earendil-works/pi-durable'
export const Profile = defineDoc({kind:'models.profile',version:1,scope:'conversation',history:'latest',fork:'current',initial:()=>({}),checkpointWhen:()=>false})
/** Optional external pin provider. The service returns a logical provider/modelId reference. */
export const Pin = {name:'models.pin'}
/** discover(cwd) reads definitions. configure(tx, id, options) applies a definition to an existing child.
* start({agent, cwd, ownership?}, context) creates a definition-based conversation. */
export const ModelsApi = {name:'models'}