FormContextFieldInput interface exported

Last updated: 2026-03-03T11:04:37.495Z

Metrics

LOC: 9 Complexity: 1 Params: 0

Signature

interface FormContextFieldInput

Summary

Compact metadata for a single field passed to the form context generator.

Source Code

export interface FormContextFieldInput {
  /** 0-based position index — used as the JSON key in the response */
  readonly index: number;
  readonly label?: string;
  readonly fieldType: FieldType;
  readonly inputType?: string;
  /** Up to 6 option values for <select> fields */
  readonly options?: readonly string[];
}

Dependencies (Outgoing)

graph LR FormContextFieldInput["FormContextFieldInput"] FieldType["FieldType"] StructuredPrompt["StructuredPrompt"] FormContextFieldInput -->|uses| FieldType FormContextFieldInput -->|uses| StructuredPrompt style FormContextFieldInput fill:#dbeafe,stroke:#2563eb,stroke-width:2px click FormContextFieldInput "6194fbe20dc11cf0.html" click FieldType "e49ed8a601306673.html" click StructuredPrompt "a828ccf4d3eb7bb7.html"
TargetType
FieldType uses
StructuredPrompt uses

Impact (Incoming)

graph LR FormContextFieldInput["FormContextFieldInput"] getLanguageModelApi["getLanguageModelApi"] isAvailableViaProxy["isAvailableViaProxy"] setNativeValue["setNativeValue"] makeField["makeField"] getLanguageModelApi -->|uses| FormContextFieldInput isAvailableViaProxy -->|uses| FormContextFieldInput getLanguageModelApi -->|uses| FormContextFieldInput setNativeValue -->|uses| FormContextFieldInput makeField -->|uses| FormContextFieldInput style FormContextFieldInput fill:#dbeafe,stroke:#2563eb,stroke-width:2px click FormContextFieldInput "6194fbe20dc11cf0.html" click getLanguageModelApi "64fb30d22107f96b.html" click isAvailableViaProxy "50fafb201d8fc13e.html" click setNativeValue "334bd99609d7c37c.html" click makeField "c0f5f9c44889811e.html"