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

FuncType agentFunc

internal/controller/executor/util.go:25–25  ·  view source on GitHub ↗

agentFunc adapts a simple function into the agent.Agent interface.

func(input []*proto.Message, tm agent.Executor, o agent.OutputHandler)

Source from the content-addressed store, hash-verified

23
24// agentFunc adapts a simple function into the agent.Agent interface.
25type agentFunc func(input []*proto.Message, tm agent.Executor, o agent.OutputHandler)
26
27func (f agentFunc) Connect(ctx context.Context, conversationID string, execID string, start *proto.AgentStart, tm agent.Executor, o agent.OutputHandler) error {
28 f(start.Messages, tm, o)

Callers 1

AgentFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected