MCPcopy
hub / github.com/the-open-agent/openagent / getTask

Function getTask

object/task.go:132–144  ·  view source on GitHub ↗
(owner string, name string)

Source from the content-addressed store, hash-verified

130}
131
132func getTask(owner string, name string) (*Task, error) {
133 task := Task{Owner: owner, Name: name}
134 existed, err := adapter.engine.Get(&task)
135 if err != nil {
136 return &task, err
137 }
138
139 if existed {
140 return &task, nil
141 } else {
142 return nil, nil
143 }
144}
145
146func GetTask(id string) (*Task, error) {
147 owner, name, err := util.GetOwnerAndNameFromIdWithError(id)

Callers 2

GetTaskFunction · 0.70
UpdateTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected