Package cloud.google.com/go/agentplatform (v0.20.0)

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.

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.

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.

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) Delete

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

func (m Memories) Update(ctx context.Context, name string, fact string, scope *map[string]string, config *types.UpdateAgentEngineMemoryConfig) (*types.AgentEngineMemoryOperation, error)

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

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.

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.

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.

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) Delete

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.