contacts

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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.

func (*ToolProvider) GetTools

func (p *ToolProvider) GetTools(name string) []tool.Tool

GetTools returns all contacts tools, prefixed with the given name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL