Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirEntryResult ¶
type FileInfoResult ¶
type FilesystemClient ¶
type FilesystemClient struct {
// contains filtered or unexported fields
}
func NewFilesystemClient ¶
func NewFilesystemClient(logger *slog.Logger, allowedRoots []string) (*FilesystemClient, error)
func (*FilesystemClient) AllowedRoots ¶
func (c *FilesystemClient) AllowedRoots() []string
func (*FilesystemClient) CallTool ¶
func (c *FilesystemClient) CallTool(ctx context.Context, name string, args json.RawMessage) (interface{}, error)
func (*FilesystemClient) Close ¶
func (c *FilesystemClient) Close() error
func (*FilesystemClient) GetTools ¶
func (c *FilesystemClient) GetTools() []ToolDefinition
type ListDirResult ¶
type ListDirResult struct {
Path string `json:"path"`
Entries []DirEntryResult `json:"entries"`
}
type ReadFileResult ¶
type ReadMultipleResult ¶
type ReadMultipleResult struct {
Files []ReadFileResult `json:"files"`
Errors []FileError `json:"errors,omitempty"`
}
type SearchFilesResult ¶
type ToolDefinition ¶
type ToolDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
InputSchema json.RawMessage `json:"inputSchema"`
}
type ToolHandler ¶
type WriteFileResult ¶
Click to show internal directories.
Click to hide internal directories.