Skip to content

Commit

Permalink
Retooled integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewaucie committed Dec 3, 2024
1 parent 4feb9e5 commit 323a1fc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 109 deletions.
108 changes: 0 additions & 108 deletions libs/core/tests/integration_tests/test_react_agent.py

This file was deleted.

2 changes: 1 addition & 1 deletion libs/langchain/langchain/agents/react/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def create_react_agent(
llm_with_stop = llm

class CustomReActOutputParser(ReActSingleInputOutputParser):
def parse(self, text: str):
def parse(self, text: str) -> str:
if "iteration limit exceeded" in text.lower():
return {"error": "Agent terminated due to iteration limit."}

Expand Down

0 comments on commit 323a1fc

Please sign in to comment.