File size: 1,639 Bytes
6639f75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  "name": "summarize_document",
  "description": "Generate intelligent summaries of documents with customizable parameters",
  "parameters": {
    "type": "object",
    "properties": {
      "document_url": {
        "type": "string",
        "description": "URL or file path to the document",
        "format": "uri"
      },
      "document_text": {
        "type": "string",
        "description": "Raw text content (alternative to document_url)"
      },
      "summary_length": {
        "type": "string",
        "enum": ["brief", "medium", "detailed"],
        "description": "Desired summary length",
        "default": "medium"
      },
      "focus_areas": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "Specific topics to focus on in summary"
      },
      "include_keywords": {
        "type": "boolean",
        "description": "Include key terms extraction",
        "default": true
      },
      "target_audience": {
        "type": "string",
        "enum": ["general", "technical", "executive", "academic"],
        "description": "Tailor summary for specific audience",
        "default": "general"
      }
    },
    "required": ["document_url"],
    "anyOf": [
      {"required": ["document_url"]},
      {"required": ["document_text"]}
    ]
  },
  "test_questions": [
    "Summarize this research paper at https://example.com/paper.pdf for executives",
    "Create a brief summary of this text focusing on financial implications: 'The quarterly report shows...'",
    "Generate a detailed technical summary of the API documentation with keywords"
  ]
}