Skip to content

Commit 9344154

Browse files
committed
feat: enable compress_tool_results to prevent context overflow on large investigations
1 parent 3ae1a0b commit 9344154

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

demo/ai_fraud_investigation_agent/fraud_investigation_agent.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ def check_business_registration(name: str, state: str = "IL") -> str:
889889
],
890890
markdown=True,
891891
show_tool_calls=True,
892+
compress_tool_results=True, # Auto-compresses large tool responses to prevent context overflow
892893
)
893894
except Exception as exc:
894895
st.error(f"Failed to initialize agent: {exc}")

0 commit comments

Comments
 (0)