(fn func(input []*proto.Message, tm agent.Executor, o agent.OutputHandler))
| 32 | func (f agentFunc) Close() error { return nil } |
| 33 | |
| 34 | func 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. |
| 39 | func text(role, s string) *proto.Message { |