Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Make internal task context inputs

Jaana Dogan6e3f79046063
diff --git a/internal/controller/loop.go b/internal/controller/loop.go
index 2f74280..1750817 100644
--- a/internal/controller/loop.go
+++ b/internal/controller/loop.go
@@ -188,8 +188,8 @@ func (e *LoopExecutor) executeTask(ctx context.Context, session *Session, task *
// Define output handler to collect responses
outputHandler := func(content *proto.Content) error {
output = append(output, content)
- if _, err := session.WriteContentOut(ctx, content); err != nil {
- return fmt.Errorf("failed to write output: %w", err)
+ if _, err := session.WriteContentIn(ctx, content); err != nil {
+ return fmt.Errorf("failed to write task inputs: %w", err)
}
return nil
}