Skip to content

Prompt name doubles as both a variable name and a text field label name. This is incorrect. #336

@charlesr1971

Description

@charlesr1971

Currently, with respect to prompts, the text field label is the same value as the name value, which is actually a variable, and therefore should be in camel case.

This doesn't look great when applied to a text field label.

Perhaps there should be another property called label, like:

export const prompts = {
    "create-greeting": {
        name: "create-greeting",
        description: "Generate a customized greeting message",
        arguments: [
            {
                name: "someVariableName",
                label: "Some label name",
                description: "Name of the person to greet",
                required: true,
           },
      ],
   },
};

Here is the part of the type definition that needs to be changed, and clearly the AI agent needs to be informed, somehow?

export const PromptArgumentSchema = z

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions