Perseus
    Preparing search index...

    Type Alias InteractiveGraphPromptJSON

    JSON describing an interactive graph widget. Intended for consumption by AI tools. An interactive graph plots equations and draws geometric figures on a Cartesian plane. The user can move and reshape these elements by dragging control points.

    type InteractiveGraphPromptJSON = {
        options: {
            backgroundImageUrl: string | null | undefined;
            graph: GraphOptions;
            labels: string[];
            range: [x: [min: number, max: number], y: [min: number, max: number]];
        };
        type: "interactive-graph";
        userInput: UserInput;
    }
    Index

    Properties

    options: {
        backgroundImageUrl: string | null | undefined;
        graph: GraphOptions;
        labels: string[];
        range: [x: [min: number, max: number], y: [min: number, max: number]];
    }

    The configuration of the widget, set by the content creator.

    Type Declaration

    • backgroundImageUrl: string | null | undefined
    • graph: GraphOptions

      Configuration of the plotted equation or geometric figure.

    • labels: string[]

      Labels on the graph axes. Format: [xLabel, yLabel].

    • range: [x: [min: number, max: number], y: [min: number, max: number]]

      The bounds of the graph. Format: [[xMin, xMax], [yMin, yMax]]

    type: "interactive-graph"
    userInput: UserInput