(_ context.Context, params GetTaskArgs)
| 327 | } |
| 328 | |
| 329 | func (t *ToolSet) getTask(_ context.Context, params GetTaskArgs) (*tools.ToolCallResult, error) { |
| 330 | t.mu.Lock() |
| 331 | defer t.mu.Unlock() |
| 332 | |
| 333 | store := t.load() |
| 334 | task, ok := store.Tasks[params.ID] |
| 335 | if !ok { |
| 336 | return tools.ResultError("task not found: " + params.ID), nil |
| 337 | } |
| 338 | |
| 339 | return taskWithEffectiveResult(task, store.Tasks), nil |
| 340 | } |
| 341 | |
| 342 | func (t *ToolSet) updateTask(_ context.Context, params UpdateTaskArgs) (*tools.ToolCallResult, error) { |
| 343 | t.mu.Lock() |