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

Method taskActorContext

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

Source from the content-addressed store, hash-verified

501}
502
503func (h *HostAPIHandler) taskActorContext(ctx context.Context) (taskpkg.ActorContext, error) {
504 extName := hostAPIExtensionNameFromContext(ctx)
505 if extName == "" {
506 return taskpkg.ActorContext{}, unavailableRPCError(errors.New("extension name is not available"))
507 }
508
509 actor, err := taskpkg.DeriveExtensionActorContext(extName, "")
510 if err != nil {
511 return taskpkg.ActorContext{}, invalidParamsRPCError(err)
512 }
513 return actor, nil
514}
515
516func (h *HostAPIHandler) taskQueryFromParams(
517 ctx context.Context,

Callers 2

handleTasksInboxMethod · 0.95
taskManagerAndActorMethod · 0.95

Calls 3

unavailableRPCErrorFunction · 0.85
invalidParamsRPCErrorFunction · 0.85

Tested by

no test coverage detected