redhairedshanks1 commited on
Commit
145565b
·
1 Parent(s): 5c130f4

Update services/pipeline_executor.py

Browse files
Files changed (1) hide show
  1. services/pipeline_executor.py +4 -2
services/pipeline_executor.py CHANGED
@@ -75,7 +75,8 @@ Pipeline components will be in format:
75
  ("system", "File path: {file_path}"),
76
  ("system", "Pipeline to execute: {pipeline_json}"),
77
  ("system", "Session ID: {session_id}"),
78
- ("human", "Execute the pipeline. Process each component in order and finalize with complete JSON results.")
 
79
  ])
80
 
81
  agent = create_tool_calling_agent(llm, tools, prompt)
@@ -147,7 +148,8 @@ You must call tools, not generate descriptions. This is mandatory."""
147
  ("system", system_instructions),
148
  ("system", "File to process: {file_path}"),
149
  ("system", "Pipeline configuration: {pipeline_json}"),
150
- ("human", "Execute ALL the tools in the pipeline. Call each tool and get real results. Do not describe, actually execute!")
 
151
  ])
152
 
153
  agent = create_tool_calling_agent(llm, tools, prompt)
 
75
  ("system", "File path: {file_path}"),
76
  ("system", "Pipeline to execute: {pipeline_json}"),
77
  ("system", "Session ID: {session_id}"),
78
+ ("human", "Execute the pipeline. Process each component in order and finalize with complete JSON results."),
79
+ MessagesPlaceholder(variable_name="agent_scratchpad") # REQUIRED for LangChain agent
80
  ])
81
 
82
  agent = create_tool_calling_agent(llm, tools, prompt)
 
148
  ("system", system_instructions),
149
  ("system", "File to process: {file_path}"),
150
  ("system", "Pipeline configuration: {pipeline_json}"),
151
+ ("human", "Execute ALL the tools in the pipeline. Call each tool and get real results. Do not describe, actually execute!"),
152
+ MessagesPlaceholder(variable_name="agent_scratchpad") # REQUIRED for LangChain agent
153
  ])
154
 
155
  agent = create_tool_calling_agent(llm, tools, prompt)