Overview of AgentField Go SDK Packages
mainThe AgentField Go SDK is organized into several functional packages for building and managing autonomous agents:
sdk/go/agent/: The core node runtime. Used for creating agents, registering reasoners/skills, managing the HTTP mux (endpoints like/reasoners/{name},/execute/{name},/health), handling async execution, and managing the control-plane lease loop.sdk/go/harness/: A CLI-based coding-agent harness. It provides providers likeclaude-code,codex,opencode, andgemini. It includes aRunner.Runmethod that supports structured output via schema files and automatic retries.sdk/go/ai/: A direct LLM API client for chat completions, tool-calling loops, and multimodal capabilities. This is an alternative to the harness.sdk/go/client/: A client for interacting with the control plane, used for executing tasks, DID authentication, and polling for approvals.sdk/go/inputs/: Utilities for manual typed extraction frommap[string]any(e.g.,RequiredString,Int,Object).sdk/go/types/: Definitions for status enums, discovery, and registration types.