github

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Execute

func (gct *GitHubContentExtractorTool) Execute(ctx context.Context, args string) (string, error)

Execute implements the tool interface

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

Parameters returns the parameters that the tool accepts

func (*GitHubContentExtractorTool) Run

func (gct *GitHubContentExtractorTool) Run(ctx context.Context, input string) (string, error)

Run executes the tool with the given input

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

Jump to

Keyboard shortcuts

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