conversationalanalytics

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoGDARequest

func DoGDARequest(ctx context.Context, client *http.Client, method, caURL string, body []byte) (map[string]any, util.ToolboxError)

DoGDARequest builds and executes an HTTP request against the Gemini Data Analytics API, sets standard headers, checks for a 2xx status code, and decodes the JSON response body (treating an empty body such as 204 No Content as {"done": true}).

func GetTokenSource

func GetTokenSource(ctx context.Context, source CompatibleSource, accessToken tools.AccessToken) (oauth2.TokenSource, util.ToolboxError)

GetTokenSource resolves the OAuth2 token source from either the client-supplied Bearer access token (when client authorization is enabled on the source) or the source's configured Google Cloud credentials.

Types

type CompatibleSource

type CompatibleSource interface {
	GoogleCloudTokenSourceWithScope(ctx context.Context, scope string) (oauth2.TokenSource, error)
	GetProjectID() string
	UseClientAuthorization() bool
}

CompatibleSource defines the source interface required by conversational analytics tools.

Jump to

Keyboard shortcuts

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