agent

package
v0.0.171 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAgent

func CreateAgent(ctx context.Context, logger logger.Logger, baseUrl string, token string, projectId string, name string, description string, authType string) (string, error)

CreateAgent will create a new agent in the project

func DeleteAgents

func DeleteAgents(ctx context.Context, logger logger.Logger, baseUrl string, token string, projectId string, agentIds []string) ([]string, error)

DeleteAgent will delete one or more Agents from the project

func GetApiKey added in v0.0.38

func GetApiKey(ctx context.Context, logger logger.Logger, baseUrl string, token string, agentId string, route string) (string, error)

Types

type Agent

type Agent struct {
	ID          string   `json:"id" yaml:"id"`
	Name        string   `json:"name" yaml:"name"`
	Description string   `json:"description,omitempty" yaml:"description,omitempty"`
	Types       []string `json:"io_types,omitempty" yaml:"io_types,omitempty"`
}

func ListAgents

func ListAgents(ctx context.Context, logger logger.Logger, baseUrl string, token string, projectId string) ([]Agent, error)

ListAgents will list all the Agents in the project which are deployed

type AgentAPIKey added in v0.0.38

type AgentAPIKey struct {
	ID     string         `json:"id"`
	Config map[string]any `json:"config"`
}

type ListResponse

type ListResponse = Response[[]Agent]

type Response

type Response[T any] struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
	Data    T      `json:"data"`
}

Jump to

Keyboard shortcuts

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