forked from bai/curriculum-project-hub
feat: redesign Feishu project console
This commit is contained in:
@@ -293,6 +293,9 @@ export async function runAgent(req: RunRequest): Promise<RunResult> {
|
||||
case "result": {
|
||||
const result = message as SDKResultMessage;
|
||||
sdkSessionId = result.session_id;
|
||||
if (result.subtype === "success" && fullText === "" && typeof result.result === "string") {
|
||||
fullText = result.result;
|
||||
}
|
||||
costUsd = Number.isFinite(result.total_cost_usd) ? result.total_cost_usd : undefined;
|
||||
if (result.subtype !== "success") {
|
||||
error = `result_${result.subtype}`;
|
||||
|
||||
Reference in New Issue
Block a user