Summarize file
SummarizeFile
¶
Bases: Toolkit
Source code in src/goose/toolkit/summarization/summarize_file.py
summarize_file(filepath, prompt=None)
¶
Tool to summarize a specific file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filepath
|
str
|
Path to the file to summarize |
required |
prompt
|
str
|
Optional prompt giving the model instructions on how to summarize the file. |
None
|
Returns:
Name | Type | Description |
---|---|---|
summary |
Optional[str]
|
Summary of the file contents |