Build image / build-and-push (push) Successful in 5s
Co-authored-by: Steve Dudenhoeffer <[email protected]>
19 lines
1.0 KiB
Go
19 lines
1.0 KiB
Go
// Package agent adapts pansy's service layer to majordomo tools so an agent can
|
|
// drive a garden in natural language ("fill the NE corner with garlic, the NW
|
|
// with basil, the south half with beans"). Each tool runs as a fixed actor and
|
|
// therefore inherits pansy's ACL checks for free — a viewer's fill_region returns
|
|
// ErrForbidden, exactly as the REST API would.
|
|
//
|
|
// Two deliberate separations keep the core server lean:
|
|
//
|
|
// - cmd/pansy does NOT import this package, so the server binary carries no
|
|
// agent/LLM dependencies.
|
|
// - the tool wiring (tools.go) sits behind the `majordomo` build tag, so the
|
|
// default `go build ./...` / `go test ./...` compiles without the majordomo
|
|
// module. Build the agent tools with `-tags majordomo` once majordomo is a
|
|
// dependency (`go get gitea.stevedudenhoeffer.com/steve/majordomo`).
|
|
//
|
|
// The agent harness itself (model loop, chat surface) lives in the
|
|
// majordomo/executus stack, outside this repo; this package is only the toolbox.
|
|
package agent
|