fix duplicate implementation
This commit is contained in:
parent
600bf355d9
commit
47cb6b65ef
|
|
@ -640,24 +640,7 @@ def main():
|
|||
config=config,
|
||||
)
|
||||
|
||||
# Proceed with planning and implementation if not an informational query
|
||||
if not is_informational_query():
|
||||
# Initialize planning model with potential overrides
|
||||
planner_provider = args.planner_provider or args.provider
|
||||
planner_model_name = args.planner_model or args.model
|
||||
planning_model = initialize_llm(
|
||||
planner_provider, planner_model_name, temperature=args.temperature
|
||||
)
|
||||
|
||||
# Run planning agent
|
||||
run_planning_agent(
|
||||
base_task,
|
||||
planning_model,
|
||||
expert_enabled=expert_enabled,
|
||||
hil=args.hil,
|
||||
memory=planning_memory,
|
||||
config=config,
|
||||
)
|
||||
# for how long have we had a second planning agent triggered here?
|
||||
|
||||
except (KeyboardInterrupt, AgentInterrupt):
|
||||
print()
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ from typing import Any, Dict, List, Union
|
|||
import logging
|
||||
|
||||
from langchain_core.tools import tool
|
||||
from langchain_text_splitters import markdown
|
||||
from rich.console import Console
|
||||
|
||||
from ra_aid.agent_context import (
|
||||
|
|
@ -455,7 +456,7 @@ def request_task_implementation(task_spec: str) -> str:
|
|||
if response_data.get("work_log"):
|
||||
markdown_parts.append(f"\n## Work Log\n\n{response_data['work_log']}")
|
||||
markdown_parts.append(
|
||||
"\n\nTHE ABOVE WORK HAS ALREADY BEEN COMPLETED --**DO NOT REQUEST IMPLEMENTATION OF IT AGAIN**"
|
||||
"\n\nTHE ABOVE WORK HAS BEEN COMPLETED"
|
||||
)
|
||||
|
||||
# Join all parts into a single markdown string
|
||||
|
|
|
|||
Loading…
Reference in New Issue