agentsdk

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDeploymentConfig

func LoadDeploymentConfig(ctx context.Context) (map[string]string, error)

LoadDeploymentConfig loads configuration from environment variables Reads AGENT_DEPLOYMENT_ID and ENVIRONMENT and fetches config from StarOps config service

func NewAPIClient

func NewAPIClient(baseURL string, timeout time.Duration) *api.Client

NewAPIClient creates a new API client for making API calls

func NewAgent

func NewAgent(options ...agent.Option) (*agent.Agent, error)

NewAgent creates a new agent with the given options

func NewAgentTaskService

func NewAgentTaskService(logger logging.Logger) (*task.AgentTaskService, error)

Creates a new agent task service

func NewAgentTaskServiceWithAdapter

func NewAgentTaskServiceWithAdapter(logger logging.Logger, service task.AgentAdapterService) *task.AgentTaskService

Creates a new agent task service with a custom adapter

func NewConfigClient

func NewConfigClient() (*agentconfig.ConfigurationClient, error)

NewConfigClient creates a new configuration client for fetching deployment configurations

func NewTaskAPI

func NewTaskAPI(client *api.Client) *api.TaskAPI

NewTaskAPI creates a new task API client

func NewTaskExecutor

func NewTaskExecutor() *executor.TaskExecutor

NewTaskExecutor creates a new task executor

func NewTaskService

func NewTaskService(logger logging.Logger) interfaces.TaskService

NewTaskService creates a new task service with in-memory storage

func WithGuardrails

func WithGuardrails(guardrails interfaces.Guardrails) agent.Option

WithGuardrails sets the guardrails for the agent

func WithLLM

func WithLLM(llm interfaces.LLM) agent.Option

WithLLM sets the LLM for the agent

func WithMemory

func WithMemory(memory interfaces.Memory) agent.Option

WithMemory sets the memory for the agent

func WithOrgID

func WithOrgID(orgID string) agent.Option

WithOrgID sets the organization ID for multi-tenancy

func WithTools

func WithTools(tools ...interfaces.Tool) agent.Option

WithTools sets the tools for the agent

Types

This section is empty.

Directories

Path Synopsis
datastore
Package graphrag provides graph-based retrieval-augmented generation capabilities.
Package graphrag provides graph-based retrieval-augmented generation capabilities.
grpc
pb
llm
api
graphrag
Package graphrag provides tools for interacting with GraphRAG knowledge graphs.
Package graphrag provides tools for interacting with GraphRAG knowledge graphs.

Jump to

Keyboard shortcuts

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