Documentation
¶
Index ¶
- type FileContent
- type GitHubContentExtractorTool
- func (gct *GitHubContentExtractorTool) Description() string
- func (gct *GitHubContentExtractorTool) DisplayName() string
- func (gct *GitHubContentExtractorTool) Execute(ctx context.Context, args string) (string, error)
- func (gct *GitHubContentExtractorTool) Internal() bool
- func (gct *GitHubContentExtractorTool) Name() string
- func (gct *GitHubContentExtractorTool) Parameters() map[string]interfaces.ParameterSpec
- func (gct *GitHubContentExtractorTool) Run(ctx context.Context, input string) (string, error)
- type SearchParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileContent ¶
type FileContent struct {
FileName string `json:"file_name"`
Path string `json:"path"`
Content string `json:"content"`
}
FileContent represents the structure of each file's content
type GitHubContentExtractorTool ¶
type GitHubContentExtractorTool struct {
// contains filtered or unexported fields
}
GitHubContentExtractorTool is a tool for extracting content from GitHub repositories
func NewGitHubContentExtractorTool ¶
func NewGitHubContentExtractorTool(token string) (*GitHubContentExtractorTool, error)
NewGitHubContentExtractorTool creates a new instance of GitHubContentExtractorTool
func (*GitHubContentExtractorTool) Description ¶
func (gct *GitHubContentExtractorTool) Description() string
Description returns the description of the tool
func (*GitHubContentExtractorTool) DisplayName ¶
func (gct *GitHubContentExtractorTool) DisplayName() string
DisplayName implements interfaces.ToolWithDisplayName.DisplayName
func (*GitHubContentExtractorTool) Internal ¶
func (gct *GitHubContentExtractorTool) Internal() bool
Internal implements interfaces.InternalTool.Internal
func (*GitHubContentExtractorTool) Name ¶
func (gct *GitHubContentExtractorTool) Name() string
Name returns the name of the tool
func (*GitHubContentExtractorTool) Parameters ¶
func (gct *GitHubContentExtractorTool) Parameters() map[string]interfaces.ParameterSpec
Parameters returns the parameters that the tool accepts
type SearchParams ¶
type SearchParams struct {
RepositoryURL string `json:"repository_url"`
FilePatterns []string `json:"file_patterns"`
MaxFiles int `json:"max_files,omitempty"`
MaxDepth int `json:"max_depth,omitempty"`
MaxFileSize int64 `json:"max_file_size,omitempty"`
SpecificFiles []string `json:"specific_files,omitempty"`
}
SearchParams represents the parameters for searching files
Click to show internal directories.
Click to hide internal directories.