improve programmer prompt

This commit is contained in:
AI Christianson 2024-12-18 12:29:01 -05:00
parent 469f09423b
commit a1d521c5e2
4 changed files with 7 additions and 4 deletions

View File

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fix one shot completion signaling.
- Clean up error outputs.
- Update prompt for better performance on large/monorepo projects.
- Update programmer prompt so we don't use it to delete files.
## [0.6.2]
- Allow shell commands to be run in read-only mode.

View File

@ -69,7 +69,8 @@ def initialize_expert_llm(provider: str = "openai", model_name: str = "o1-previe
elif provider == "anthropic":
return ChatAnthropic(
api_key=os.getenv("EXPERT_ANTHROPIC_API_KEY"),
model_name=model_name
model_name=model_name,
max_tokens=200000
)
elif provider == "openrouter":
return ChatOpenAI(

View File

@ -1,8 +1,6 @@
from pathlib import Path
from typing import List, Tuple, Optional
from typing import List, Tuple
import fnmatch
from git import Repo
from git.exc import InvalidGitRepositoryError
from fuzzywuzzy import process
from langchain_core.tools import tool
from rich.console import Console

View File

@ -28,6 +28,9 @@ def run_programming_task(input: RunProgrammingTaskInput) -> Dict[str, Union[str,
If any new files are created, remember to emit them using the emit_related_files tool once this tool completes.
Additionally, before invoking this tool, make sure all existing related files have been emitted using the emit_related_files tool.
The programmer can add or modify files, but cannot remove them. Use the run_shell_command tool to remove files.
If you need the programmer to reference files you intend to delete, delete them after the programmer finises their work.
Args:
instructions: Instructions for the programming task