mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
refactors and ui enhancements
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import React from "react";
|
||||
import LoadingIndicator from "./LoadingIndicator";
|
||||
|
||||
export default function ConfirmInline({ data, confirmed, onConfirm }) {
|
||||
const { args, tool } = data || {};
|
||||
|
||||
@@ -32,6 +32,16 @@ export default function LLMResponse({ data, onConfirm, isLastMessage }) {
|
||||
onConfirm={handleConfirm}
|
||||
/>
|
||||
)}
|
||||
{!requiresConfirm && data.tool && data.next === "confirm" && (
|
||||
<div className="text-sm text-center text-green-600 dark:text-green-400">
|
||||
<div>
|
||||
Agent ran tool: <strong>{data.tool ?? "Unknown"}</strong>
|
||||
</div>
|
||||
{/* <div>
|
||||
{JSON.stringify(data, null, 2)}
|
||||
</div> */}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user