@dxos/compute - v0.16.0
    Preparing search index...

    Class Instructions

    Prompt-based operation. May reference skills and additional context. Hidden from the navtree and object picker — accessed only through Routines.

    Hierarchy

    • {
          commands?: readonly {
              description?: string;
              prompt: string;
              sentinel: string;
          }[];
          input: JsonSchemaType;
          name?: string;
          objects?: readonly Ref<Unknown>[];
          output: JsonSchemaType;
          skills: readonly Ref<Skill.Skill & OfKind<Object> & Unknown>[];
          text: Ref<Text & OfKind<Object> & Unknown>;
      } & OfKind<Object, this>
      • Instructions
    Index

    Constructors

    • Parameters

      • _: never

      Returns Instructions.Instructions

    Properties

    "~@dxos/echo/Kind": Object
    commands?: readonly { description?: string; prompt: string; sentinel: string }[] = ...

    Sentinel commands available to chat sessions running with these instructions.

    id: string
    input: JsonSchemaType = ...
    name?: string = ...
    objects?: readonly Ref<Unknown>[] = ...

    Context objects bound to the agent's session when this routine runs (sibling of skills). Generic Ref.Ref(Obj.Unknown) so any space object qualifies. Honored on every run path that executes a routine through the agent prompt, not only triggered automations.

    output: JsonSchemaType = ...
    skills: readonly Ref<Skill.Skill & OfKind<Object> & Unknown>[] = ...
    text: Ref<Text & OfKind<Object> & Unknown> = ...

    Owned body: SetParent cascades it and deep-clones it with the instructions.

    "~@dxos/echo/Kind": Type

    Entity-kind brand of the type-entity value itself — always EntityKind.Type. The kind of instance the type describes lives on [SchemaKindId] (Object / Relation / Type). Lets Obj.isObject / Relation.isRelation reject type entities by a single [KindId] check.

    "~@dxos/echo/SchemaKind": Object

    Schema-kind brand (object).

    "~@dxos/echo/Type.Instance"?: Instructions.Instructions & OfKind<Object>
    "~@dxos/echo/Type.StaticSchema": Codec<any, any>

    Source Effect Schema — used internally by Type.getSchema(self).

    fields: {}

    The fields defined in the original struct schema. Allows accessing field definitions for introspection.

    id: string

    Object id. Like all ECHO entities, type entities always carry an id — stamped at construction for in-memory (static) declarations and assigned by the database once persisted. The id does NOT determine the entity's URI: static types resolve to their typename DXN, persisted types to echo:///<id> (see getTypeURIFromSpecifier).

    jsonSchema: JsonSchemaType
    name?: string