Skip to content

Support <context> Component in Prompts #31

@sbhrwlr

Description

@sbhrwlr

Currently, PromptL does not support the component for handling additional contextual information in prompts.

Feature Request:

  • Add support for a component in prompt definitions.
  • This should allow injecting contextual information (e.g. user history, external data) in a structured way.
  • Ensure the context is accessible and formatted appropriately in the final prompt rendering.

sample prompt:

You are a helpful customer support agent for ABC company.

<context>
  The user has already tried restarting their device and checking the FAQ without success.
  They mentioned the issue started after the latest app update.
  They want a quick resolution as they rely on the app for work.
</context>

<user>
  The app keeps crashing when I try to open it. Can you help?
</user>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions