Generic pool
The pool that DbPool is built on is a package of its own, pool, in agentica-lang/packages. It is for any resource that is made once and lent to one caller at a time: a database connection, an HTTP connection, a worker. Its documentation is on the pool page: the Spec, its settings and defaults, the errors and their kinds, and how a caller that ends and a close are handled.
A project that needs only the pool installs it alone:
agentica add pool https://github.com/agentica-lang/packages --tag pool-0.1.0 --subdir poolDbPool takes the settings of the pool as its own options, with the same names and defaults (see the connection pool). A project that imports pkg/db/db_pool gets the pool package as a dependency of db.