File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 44 "license" : " MIT" ,
55 "require" : {
66 "php" : " ^8.3" ,
7- "llm-agents/agents" : " ^1.2 " ,
7+ "llm-agents/agents" : " dev-feature/embeddings as 1.0 " ,
88 "llm-agents/json-schema-mapper" : " ^1.0"
99 },
1010 "require-dev" : {
Original file line number Diff line number Diff line change 55namespace LLM \Agents \PromptGenerator \Interceptors ;
66
77use LLM \Agents \Agent \AgentRepositoryInterface ;
8+ use LLM \Agents \Agent \HasLinkedAgentsInterface ;
89use LLM \Agents \LLM \Prompt \Chat \MessagePrompt ;
910use LLM \Agents \LLM \Prompt \Chat \Prompt ;
1011use LLM \Agents \LLM \Prompt \Chat \PromptInterface ;
@@ -27,6 +28,10 @@ public function generate(
2728 ): PromptInterface {
2829 \assert ($ input ->prompt instanceof Prompt);
2930
31+ if (!$ input ->agent instanceof HasLinkedAgentsInterface) {
32+ return $ next ($ input );
33+ }
34+
3035 if (\count ($ input ->agent ->getAgents ()) === 0 ) {
3136 return $ next ($ input );
3237 }
You can’t perform that action at this time.
0 commit comments