Configures an agent with tools, models, and fallback strategies.
// Source: https://github.com/docker/docker-agent | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package agent import ( "context" "maps" "slices" "sync" "time" "github.com/docker/docker-agent/pkg/cache" "github.com/docker/docker-agent/pkg/config/latest" "github.com/docker/docker-agent/pkg/config/types" "github.com/docker/docker-agent/pkg/evaluator" "github.com/docker/docker-agent/pkg/model/provider" "github.com/docker/docker-agent/pkg/tools" "github.com/docker/docker-agent/pkg/tools/builtin/structuredoutput" ) type Opt func(a *Agent) // WithWorkingDirFactory installs a constructor for fresh workspace-local toolsets. // The factory must return a new agent without l ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key