computerapi

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SearchMatch

type SearchMatch struct {
	Path string `json:"path"`
	Line int    `json:"line"`
	Text string `json:"text"`
}

type Service

type Service struct {
	DB    *sql.DB
	Paths store.Paths
}

func (Service) Call

func (s Service) Call(sessionID, module, function string, args map[string]string, toolCallID string, stream bool) (string, security.DecisionRecord, error)

func (Service) ExportArtifact

func (s Service) ExportArtifact(sessionID, filePath, name, toolCallID string) (string, security.DecisionRecord, error)

func (Service) ReadFile

func (s Service) ReadFile(sessionID, filePath, toolCallID string) (string, security.DecisionRecord, error)

func (Service) Search

func (s Service) Search(sessionID, pattern, toolCallID string) ([]SearchMatch, security.DecisionRecord, error)

func (Service) WriteFile

func (s Service) WriteFile(sessionID, filePath, content, toolCallID string) (security.DecisionRecord, error)

type SessionMeta

type SessionMeta struct {
	RunID         string
	ContainerID   string
	WorkspacePath string
}

Jump to

Keyboard shortcuts

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