Documentation
¶
Overview ¶
Package contacts provides Google Contacts (People API) tools for agents. It enables listing and searching the user's contacts using the same embedded OAuth client as Calendar when built with -X (see pkg/tools/google/oauth).
Authentication: Same as Calendar — CredentialsFile (path or JSON) or build-time injected GoogleClientID/GoogleClientSecret. TokenFile (or inline token) required for OAuth2. Enable People API in Google Cloud Console.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ToolProvider ¶
type ToolProvider struct {
// contains filtered or unexported fields
}
ToolProvider wraps the contacts tools and satisfies the tools.ToolProviders interface so contacts tools can be passed to tools.NewRegistry. Secrets are resolved at runtime (not at construction time). Uses the same embedded OAuth client as Calendar when built with -X (see pkg/tools/google/oauth).
func NewToolProvider ¶
func NewToolProvider(secretProvider security.SecretProvider) *ToolProvider
NewToolProvider creates a ToolProvider for the contacts tools.