refactor: workflow-as-agent outputs readable summary instead of raw hash
Extract can now work with the readable content directly, without needing a special extractPrompt for DAG traversal. Closes #182
This commit is contained in:
@@ -108,7 +108,7 @@ export function workflowAsAgent(
|
|||||||
io,
|
io,
|
||||||
logger,
|
logger,
|
||||||
);
|
);
|
||||||
return result.rootHash;
|
return `Child workflow "${workflowName}" completed (returnCode=${result.returnCode}).\n\nSummary: ${result.summary}\n\nChild thread root hash: ${result.rootHash}`;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const message = e instanceof Error ? e.message : String(e);
|
const message = e instanceof Error ? e.message : String(e);
|
||||||
return `ERROR: ${message}`;
|
return `ERROR: ${message}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user