contacts

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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