Improve tool description to encourage model to use summarize_document
This commit is contained in:
@@ -44,17 +44,22 @@ TOOLS_LIST: Dict[str, Any] = {
|
|||||||
"tools": [
|
"tools": [
|
||||||
{
|
{
|
||||||
"name": "summarize_document",
|
"name": "summarize_document",
|
||||||
"description": "Summarize a document. Automatically handles chunking for long text. Returns a concise summary without exposing the full text.",
|
"description": (
|
||||||
|
"Use this tool for any long or complex document you need to summarize. "
|
||||||
|
"It automatically chunks large texts, summarizes each chunk, and combines them "
|
||||||
|
"into one concise summary while keeping the full text out of the chat context window. "
|
||||||
|
"Prefer this tool over doing your own summarization for documents longer than a few paragraphs."
|
||||||
|
),
|
||||||
"inputSchema": {
|
"inputSchema": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"text": {
|
"text": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The document text to summarize"
|
"description": "The full document text to summarize. Paste or paste-in the entire content."
|
||||||
},
|
},
|
||||||
"max_length": {
|
"max_length": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Maximum length of summary in words (default: 100)"
|
"description": "Maximum length of summary in words (default: 100). Use this to control detail level."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["text"]
|
"required": ["text"]
|
||||||
|
|||||||
Reference in New Issue
Block a user