agentplatform

package module
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

README

Agent Platform Go SDK

[!IMPORTANT] Thanks for your interest in the Agent Platform SDKs!

More details and information coming soon!

Documentation

Overview

Package agentplatform provides a client for interacting with Agent Platform APIs.

New users are encouraged to use the Google GenAI Go SDK available at google.golang.org/genai.

See cloud.google.com/go/agentplatform for the currently supported functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentEngines

type AgentEngines struct {
	Sessions  *Sessions
	Sandboxes *Sandboxes
	Memories  *Memories
	// contains filtered or unexported fields
}

func (AgentEngines) Create

Create creates an agent engine based on the provided configuration and returns the operation object representing the creation process.

func (AgentEngines) Delete

Delete deletes the agent engine with the specified name and returns the operation object representing the deletion process.

func (AgentEngines) Get

Get returns the agent engine with the specified name and returns the agent engine object representing the get agent engine process.

func (AgentEngines) GetAgentOperation

func (m AgentEngines) GetAgentOperation(ctx context.Context, operationName string, config *types.GetAgentEngineOperationConfig) (*types.AgentEngineOperation, error)

GetAgentOperation returns the operation object representing the get agent operation process.

func (AgentEngines) List

List lists the agent engines that match the provided configuration and returns the list of agent engines and the operation object representing the listing process.

func (AgentEngines) Query

Query queries the agent engine with the specified name and returns the response object representing the query agent engine process.

func (AgentEngines) Update

Update updates the agent engine with the specified name and returns the operation object representing the update process.

type Client

type Client struct {
	AgentEngines *clientAgentEngines
}

A Client is a Google Vertex AI client.

func NewClient

func NewClient(ctx context.Context, cc *genai.ClientConfig) (*Client, error)

NewClient creates a new Google Vertex AI client and configures the the GenAI components.

type Memories

type Memories struct {
	MemoryRevisions *MemoryRevisions
	// contains filtered or unexported fields
}

func (Memories) Create

Create creates a new memory for the given name, fact, scope, and config.

func (Memories) Generate

Generate generates the memories for the given name, vertex session source, direct contents source, direct memories source, scope, and config, and returns the operation.

func (Memories) Get

func (Memories) GetGenerateMemoriesOperation

func (m Memories) GetGenerateMemoriesOperation(ctx context.Context, operationName string, config *types.GetAgentEngineOperationConfig) (*types.AgentEngineGenerateMemoriesOperation, error)

GetGenerateMemoriesOperation returns the generate memories operation for the given operation name, vertex session source, direct contents source, direct memories source, scope, and config.

func (Memories) GetMemoryOperation

func (m Memories) GetMemoryOperation(ctx context.Context, operationName string, config *types.GetAgentEngineOperationConfig) (*types.AgentEngineMemoryOperation, error)

GetMemoryOperation returns the memory operation for the given operation name and config.

func (Memories) List

List lists the memories for the given name and config, and returns the response.

func (Memories) Purge

Purge purges the memory for the given name, filter, filter groups, force, and config, and returns the purge memory operation.

func (Memories) Retrieve

Retrieve retrieves the memories for the given name, scope, similarity search params, simple retrieval params, and config, and returns the response.

func (Memories) RetrieveProfiles

func (m Memories) RetrieveProfiles(ctx context.Context, name string, scope map[string]string, config *types.RetrieveMemoryProfilesConfig) (*types.RetrieveProfilesResponse, error)

func (Memories) Rollback

Rollback rolls back the memory to the given target revision id and returns the rollback memory operation.

func (Memories) Update

Update updates the memory for the given name, fact, scope, and config, and returns the memory operation.

type MemoryRevisions

type MemoryRevisions struct {
	// contains filtered or unexported fields
}

func (MemoryRevisions) Get

func (MemoryRevisions) List

List lists the memory revisions for the given name and config, and returns the response.

type Sandboxes

type Sandboxes struct {
	// contains filtered or unexported fields
}

func (Sandboxes) Create

Create creates a sandbox for the given name, spec, and config, and returns the sandbox operation.

func (Sandboxes) Delete

Delete deletes the sandbox with the specified name and returns the sandbox operation representing the deletion process.

func (Sandboxes) ExecuteCode

ExecuteCode executes the code for the given name, inputs, and config, and returns the response.

func (Sandboxes) Get

Get returns the sandbox with the specified name and returns the sandbox object representing the get sandbox process.

func (Sandboxes) GetSandboxOperation

func (m Sandboxes) GetSandboxOperation(ctx context.Context, operationName string, config *types.GetAgentEngineOperationConfig) (*types.AgentEngineSandboxOperation, error)

GetSandboxOperation returns the sandbox operation for the given operation name and config, and returns the sandbox operation.

func (Sandboxes) List

List lists the sandboxes for the given name and config, and returns the response.

type SessionEvents

type SessionEvents struct {
	// contains filtered or unexported fields
}

func (SessionEvents) Append

func (SessionEvents) List

List lists the session events for the given name and config, and returns the response.

type Sessions

type Sessions struct {
	SessionEvents *SessionEvents
	// contains filtered or unexported fields
}

func (Sessions) Create

Create creates a session for the given name, user ID, and config, and returns the session operation.

func (Sessions) Get

func (Sessions) GetSessionOperation

func (m Sessions) GetSessionOperation(ctx context.Context, operationName string, config *types.GetAgentEngineOperationConfig) (*types.AgentEngineSessionOperation, error)

GetSessionOperation returns the session operation for the given operation name and config, and returns the session operation representing the get session process.

func (Sessions) List

List lists the sessions for the given name and config, and returns the response.

func (Sessions) Update

Update updates the session with the specified name and returns the session operation representing the update session process.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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