Optional_parentRunId: stringReadonlyhandlersReadonlyrunProtected ReadonlyinheritableProtected ReadonlyinheritableProtected ReadonlyinheritableProtected ReadonlymetadataProtected ReadonlytagsOptionaltag: stringCalled when an agent finishes execution, before it exits. with the final output and the run ID.
Called at the end of a Chain run, with the outputs and the run ID.
Optional_runId: stringOptional_parentRunId: stringOptional_tags: string[]Optionalkwargs: { Optionalinputs?: Record<string, unknown>Called if a Chain run encounters an error
Optional_runId: stringOptional_parentRunId: stringOptional_tags: string[]Optionalkwargs: { Optionalinputs?: Record<string, unknown>
Called when an agent is about to execute an action, with the action and the run ID.