feat(step): expand detail CAS refs by default in step list
Previously step list showed raw CAS refs for detail fields. Now detail is recursively expanded (like output already was), since every turn is individually hashed and walkable. Refs #463
This commit is contained in:
@@ -250,7 +250,7 @@ export async function cmdStepList(
|
||||
hash: item.hash,
|
||||
role: item.payload.role,
|
||||
output: expandOutput(uwf, item.payload.output),
|
||||
detail: item.payload.detail,
|
||||
detail: item.payload.detail ? expandDeep(uwf.store, item.payload.detail) : null,
|
||||
agent: item.payload.agent,
|
||||
timestamp: item.timestamp,
|
||||
});
|
||||
|
||||
@@ -92,7 +92,7 @@ export type StepEntry = {
|
||||
hash: CasRef;
|
||||
role: string;
|
||||
output: unknown;
|
||||
detail: CasRef;
|
||||
detail: unknown;
|
||||
agent: string;
|
||||
timestamp: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user