reimplement agent,provider and add file history
This commit is contained in:
parent
76b4065f17
commit
bbfa60c787
73 changed files with 3595 additions and 3879 deletions
|
|
@ -27,7 +27,7 @@ type grepMatch struct {
|
|||
modTime time.Time
|
||||
}
|
||||
|
||||
type GrepMetadata struct {
|
||||
type GrepResponseMetadata struct {
|
||||
NumberOfMatches int `json:"number_of_matches"`
|
||||
Truncated bool `json:"truncated"`
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ func (g *grepTool) Run(ctx context.Context, call ToolCall) (ToolResponse, error)
|
|||
|
||||
return WithResponseMetadata(
|
||||
NewTextResponse(output),
|
||||
GrepMetadata{
|
||||
GrepResponseMetadata{
|
||||
NumberOfMatches: len(matches),
|
||||
Truncated: truncated,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue