MCPcopy Create free account
hub / github.com/compozy/agh / taskManagerAndActor

Method taskManagerAndActor

internal/extension/host_api_tasks.go:491–501  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

489}
490
491func (h *HostAPIHandler) taskManagerAndActor(ctx context.Context) (hostAPITaskManager, taskpkg.ActorContext, error) {
492 manager, err := h.taskManager()
493 if err != nil {
494 return nil, taskpkg.ActorContext{}, fmt.Errorf("extension: resolve task manager: %w", err)
495 }
496 actor, err := h.taskActorContext(ctx)
497 if err != nil {
498 return nil, taskpkg.ActorContext{}, fmt.Errorf("extension: derive task actor context: %w", err)
499 }
500 return manager, actor, nil
501}
502
503func (h *HostAPIHandler) taskActorContext(ctx context.Context) (taskpkg.ActorContext, error) {
504 extName := hostAPIExtensionNameFromContext(ctx)

Callers 15

handleTasksMethod · 0.95
handleTasksGetMethod · 0.95
handleTasksTimelineMethod · 0.95
handleTasksTreeMethod · 0.95
handleTasksCreateMethod · 0.95
handleTasksUpdateMethod · 0.95
handleTasksCancelMethod · 0.95
handleTasksRunsMethod · 0.95
handleTasksRunsGetMethod · 0.95
handleTasksRunsClaimMethod · 0.95
handleTasksRunsStartMethod · 0.95

Calls 2

taskManagerMethod · 0.95
taskActorContextMethod · 0.95