Skip to content

Commit

Permalink
Merge pull request #8 from llm-agents-php/feature/prompt-generator-co…
Browse files Browse the repository at this point in the history
…ntext

Feature/prompt generator context
  • Loading branch information
butschster authored Sep 4, 2024
2 parents defb93f + 4bf750a commit 6771f11
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/LLM/AgentPromptGeneratorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
namespace LLM\Agents\LLM;

use LLM\Agents\Agent\AgentInterface;
use LLM\Agents\LLM\Prompt\Chat\Prompt;
use LLM\Agents\LLM\Prompt\Chat\PromptInterface;

interface AgentPromptGeneratorInterface
{
public function generate(
AgentInterface $agent,
string|\Stringable $prompt,
?array $sessionContext = null,
string|\Stringable $userPrompt,
PromptContextInterface $context,
PromptInterface $prompt = new Prompt(),
): PromptInterface;
}
7 changes: 7 additions & 0 deletions src/LLM/PromptContextInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

declare(strict_types=1);

namespace LLM\Agents\LLM;

interface PromptContextInterface { }

0 comments on commit 6771f11

Please sign in to comment.