MCPcopy
hub / github.com/kagent-dev/kagent / BaseClient

Struct BaseClient

go/api/client/base.go:45–49  ·  view source on GitHub ↗

BaseClient contains the shared HTTP functionality used by all sub-clients

Source from the content-addressed store, hash-verified

43
44// BaseClient contains the shared HTTP functionality used by all sub-clients
45type BaseClient struct {
46 BaseURL string
47 HTTPClient *http.Client
48 UserID string // Default user ID for requests that require it
49}
50
51// NewBaseClient creates a new base client with the given configuration
52func NewBaseClient(baseURL string, options ...ClientOption) *BaseClient {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected