mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 22:18:09 +01:00
works a lot better with 4o!
This commit is contained in:
@@ -14,6 +14,10 @@ export default function LLMResponse({ data, onConfirm }) {
|
||||
|
||||
const requiresConfirm = data.next === "confirm";
|
||||
|
||||
if (typeof data.response === "object") {
|
||||
data.response = data.response.response;
|
||||
}
|
||||
|
||||
let displayText = (data.response || "").trim();
|
||||
if (!displayText && requiresConfirm) {
|
||||
displayText = `Agent is ready to run "${data.tool}". Please confirm.`;
|
||||
|
||||
Reference in New Issue
Block a user