OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Form to launch a background agent run.
Source Definition
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import { docId } from '../../docs/registry';
import type { DocBlock } from '../../docs/types';
import { defineFormSpec } from '../../forms/forms';
import {
AGENT_DOMAIN,
AGENT_OWNERS,
AGENT_STABILITY,
AGENT_TAGS,
} from '../constants';
export const AgentRunForm = defineFormSpec({
meta: {
key: 'agent.run.form',
title: 'Run Agent',
version: '1.0.0',
description: 'Form to launch a background agent run.',
domain: AGENT_DOMAIN,
owners: AGENT_OWNERS,
tags: [...AGENT_TAGS, 'run'],
stability: AGENT_STABILITY,
docId: [docId('docs.tech.agent.run.form')],
},
model: AgentRunFormModel,
fields: [
{
kind: 'text',
name: 'agentKey',
labelI18n: 'Agent',
placeholderI18n: 'agent.key',
required: true,
},
{
kind: 'textarea',
name: 'prompt',
labelI18n: 'Prompt',
placeholderI18n: 'Describe the task',
},
{
kind: 'text',
name: 'contextSnapshotId',
labelI18n: 'Context Snapshot',
placeholderI18n: 'snapshot id',
},
{
kind: 'text',
name: 'mode',
labelI18n: 'Mode',
placeholderI18n: 'background',
},
{
kind: 'text',
name: 'priority',
labelI18n: 'Priority',
placeholderI18n: '0',
},
],
actions: [
{
key: 'run',
labelI18n: 'Run agent',
op: { name: 'agent.run', version: '1.0.0' },
},
],
policy: {
flags: [],
pii: ['prompt'],
},
});