Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/codegen/agents/code_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def __init__(
additional_tools=tools,
**kwargs,
)
self.model_name = model_name
self.langsmith_client = Client()
self.run_id = run_id
self.instance_id = instance_id
Expand Down Expand Up @@ -92,8 +93,8 @@ def run(self, prompt: str, thread_id: Optional[str] = None) -> str:
# this message has a reducer which appends the current message to the existing history
# see more https://langchain-ai.github.io/langgraph/concepts/low_level/#reducers
input = {"messages": [("user", prompt)]}
metadata = {"project": self.project_name}
tags = []
metadata = {"project": self.project_name, "model": self.model_name}
tags = [self.model_name]
# Add SWEBench run ID and instance ID to the metadata and tags for filtering
if self.run_id is not None:
metadata["swebench_run_id"] = self.run_id
Expand Down
Loading