feat: add stepIndex to history events
This commit is contained in:
@@ -263,6 +263,7 @@ export class PageAgentCore extends EventTarget {
|
||||
|
||||
this.history.push({
|
||||
type: 'step',
|
||||
stepIndex: step,
|
||||
reflection,
|
||||
action,
|
||||
usage: result.usage,
|
||||
|
||||
@@ -35,6 +35,7 @@ export interface MacroToolResult {
|
||||
*/
|
||||
export interface AgentStep {
|
||||
type: 'step'
|
||||
stepIndex: number
|
||||
reflection: Partial<AgentReflection>
|
||||
action: {
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user