contacts

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSearchResults = 20

Variables

This section is empty.

Functions

func Register

func Register(app core.App)

Register attaches contacts record hooks to the application.

Types

type SearchOptions

type SearchOptions struct {
	Query string
	Limit int
}

type Summary

type Summary struct {
	ID         string `json:"id"`
	Name       string `json:"name"`
	Title      string `json:"title,omitempty"`
	Status     string `json:"status,omitempty"`
	Avatar     string `json:"avatar,omitempty"`
	Collection string `json:"collectionId,omitempty"`
}
func Search(ctx context.Context, app core.App, actorID string, options SearchOptions) ([]Summary, error)

Search returns the non-sensitive contact projection available to an authenticated user. Phone numbers and other profile details are excluded because tool results are forwarded to the selected external model.

Jump to

Keyboard shortcuts

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