Skip to content

Commit bcd2aab

Browse files
committed
returning executed steps even tho reached maximum tries in executor
1 parent 7470d69 commit bcd2aab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,4 @@ git tag -a v0.0.1.18 -m "Release version v...18 with context var of steps execut
7777
git push origin v0.0.1.18
7878

7979
# In another project, get the module at the tagged version
80-
go get github.com/IT-Tech-Company/langchaingo@v0.0.18
80+
go get github.com/IT-Tech-Company/langchaingo@v0.0.1.18

agents/executor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (e *Executor) Call(ctx context.Context, inputValues map[string]any, _ ...ch
7272
if e.CallbacksHandler != nil {
7373
e.CallbacksHandler.HandleAgentFinish(ctx, schema.AgentFinish{
7474
ReturnValues: map[string]any{"output": ErrNotFinished.Error()},
75-
})
75+
}, callbacks.WithExecutedSteps(steps))
7676
}
7777
return e.getReturn(
7878
&schema.AgentFinish{ReturnValues: make(map[string]any)},

0 commit comments

Comments
 (0)