MCPcopy
hub / github.com/google/ax / AgentFunc

Function AgentFunc

internal/controller/executor/util.go:34–36  ·  view source on GitHub ↗
(fn func(input []*proto.Message, tm agent.Executor, o agent.OutputHandler))

Source from the content-addressed store, hash-verified

32func (f agentFunc) Close() error { return nil }
33
34func AgentFunc(fn func(input []*proto.Message, tm agent.Executor, o agent.OutputHandler)) agent.Agent {
35 return agentFunc(fn)
36}
37
38// text is a helper that builds a plain-text Message.
39func text(role, s string) *proto.Message {

Callers 12

ExampleFunction · 0.85
TestTaskManagerFunction · 0.85
TestFanoutFunction · 0.85
TestConfirmationFunction · 0.85
TestResumeFunction · 0.85
TestResumeConfirmationFunction · 0.85

Calls 1

agentFuncFuncType · 0.85

Tested by 12

ExampleFunction · 0.68
TestTaskManagerFunction · 0.68
TestFanoutFunction · 0.68
TestConfirmationFunction · 0.68
TestResumeFunction · 0.68
TestResumeConfirmationFunction · 0.68