Skip to content

[Agent][Platform] Introduce Prompt Templates #258

@chr-hertel

Description

@chr-hertel

Feature

It is a common and simple feature to provide and use prompt templates:

Those linked solutions are quite similar, at least at first glance, and I guess we could see some use-case here already with the SimilaritySearch tool:

$result = 'Found documents with following information:'.\PHP_EOL;
foreach ($this->usedDocuments as $document) {
$result .= json_encode($document->metadata);
}

Open Questions

  • I feel like this should live in the Platform component and sit on top of a message, like a TemplateMessage or something - not sure tho
  • Should we go all in with twig here? feels like over the top 🤔

Metadata

Metadata

Assignees

No one assigned

    Labels

    AgentIssues & PRs about the AI Agent componentFeatureNew featureHelp wantedExtra attention is neededPlatformIssues & PRs about the AI Platform component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions