summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/agent/task.go
diff options
context:
space:
mode:
authorKujtim Hoxha <[email protected]>2025-04-10 13:29:44 +0200
committerKujtim Hoxha <[email protected]>2025-04-10 13:29:44 +0200
commit36f201d5d3aaba7e0285d86cf1c0cf6b54769cff (patch)
tree1f1c99e66df4c25f816fbfba2b1e255c94bec9ba /internal/llm/agent/task.go
parent0b007b9c77bc790127021a7e03c8e05ec8e5e081 (diff)
downloadopencode-36f201d5d3aaba7e0285d86cf1c0cf6b54769cff.tar.gz
opencode-36f201d5d3aaba7e0285d86cf1c0cf6b54769cff.zip
fix logs and add cancellation
Diffstat (limited to 'internal/llm/agent/task.go')
-rw-r--r--internal/llm/agent/task.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/llm/agent/task.go b/internal/llm/agent/task.go
index 9737d41b8..034e93460 100644
--- a/internal/llm/agent/task.go
+++ b/internal/llm/agent/task.go
@@ -1,6 +1,7 @@
package agent
import (
+ "context"
"errors"
"github.com/kujtimiihoxha/termai/internal/app"
@@ -13,8 +14,8 @@ type taskAgent struct {
*agent
}
-func (c *taskAgent) Generate(sessionID string, content string) error {
- return c.generate(sessionID, content)
+func (c *taskAgent) Generate(ctx context.Context, sessionID string, content string) error {
+ return c.generate(ctx, sessionID, content)
}
func NewTaskAgent(app *app.App) (Agent, error) {