-
Notifications
You must be signed in to change notification settings - Fork 1
Remove the temperature override since its model based #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis PR removes explicit temperature settings across JS and Python model clients, modifies prompt templates in JS, updates Python autogen client signature to drop temperature, and substantially extends Python LangGraph with a tool-enabled state graph, conditional routing, streaming finalization, and improved error handling. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant R as Runner (run)
participant G as LangGraph (StateGraph)
participant A as Agent (Model)
participant T as Tools
U->>R: provide input (or fallback default)
R->>G: start with Human message
G->>A: call_model(state)
A-->>G: AI message (may include tool_calls)
alt tool_calls present
G->>T: execute tool_calls
T-->>G: tool results
G->>A: call_model(updated state)
A-->>G: AI message
else no tool_calls
Note over G: Flow proceeds to END
end
loop stream
G-->>R: chunks (messages/state updates)
R->>R: track last AIMessage
end
R-->>U: return last AI message content or error string
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🧰 Additional context used📓 Path-based instructions (7)common/{js,py}/**/*📄 CodeRabbit inference engine (AGENT.md)
Files:
common/{js,py}/**/*.{js,ts,tsx,py}📄 CodeRabbit inference engine (AGENT.md)
Files:
common/py/**/*.py📄 CodeRabbit inference engine (AGENT.md)
Files:
**/*.{ts,tsx,js}📄 CodeRabbit inference engine (AGENT.md)
Files:
common/js/**/*.{js,ts,tsx,jsx}📄 CodeRabbit inference engine (AGENT.md)
Files:
common/js/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENT.md)
Files:
common/js/**/*.ts📄 CodeRabbit inference engine (common/js/AGENTS.md)
Files:
🧬 Code graph analysis (2)common/py/autogen.py (1)
common/py/langgraph.py (2)
🪛 Ruff (0.13.3)common/py/autogen.py57-57: Do not catch blind exception: (BLE001) 58-58: Use Replace with (TRY400) common/py/langgraph.py49-49: f-string without any placeholders Remove extraneous (F541) 108-108: Unnecessary key check before dictionary access Replace with (RUF019) 122-122: Do not catch blind exception: (BLE001) 123-123: Use Replace with (TRY400) 🔇 Additional comments (3)
Comment |
Summary by CodeRabbit