File size: 2,810 Bytes
e09244d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{
    "model": "claude-3-5-sonnet-20240620",
    "messages": [
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "搜索今天的新闻"
                }
            ]
        },
        {
            "role": "assistant",
            "content": [
                {
                    "type": "tool_use",
                    "id": "toolu_01RofFmKHUKsEaZvqESG5Hwz",
                    "name": "get_search_results",
                    "input": {
                        "prompt": "latest news today"
                    }
                }
            ]
        },
        {
            "role": "user",
            "content": [
                {
                    "type": "tool_result",
                    "tool_use_id": "toolu_01RofFmKHUKsEaZvqESG5Hwz",
                    "content": "latest news today"
                }
            ]
        }
    ],
    "temperature": 0.5,
    "top_p": 0.7,
    "max_tokens": 4096,
    "stream": true,
    "system": "You are Claude, a large language model trained by Anthropic. Use simple characters to represent mathematical symbols. Do not use LaTeX commands. Respond conversationally in English.",
    "tools": [
        {
            "name": "get_search_results",
            "description": "Search Google to enhance knowledge.",
            "input_schema": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "description": "The prompt to search."
                    }
                },
                "required": [
                    "prompt"
                ]
            }
        },
        {
            "name": "get_url_content",
            "description": "Get the webpage content of a URL",
            "input_schema": {
                "type": "object",
                "properties": {
                    "url": {
                        "type": "string",
                        "description": "the URL to request"
                    }
                },
                "required": [
                    "url"
                ]
            }
        },
        {
            "name": "download_read_arxiv_pdf",
            "description": "Get the content of the paper corresponding to the arXiv ID",
            "input_schema": {
                "type": "object",
                "properties": {
                    "prompt": {
                        "type": "string",
                        "description": "the arXiv ID of the paper"
                    }
                },
                "required": [
                    "prompt"
                ]
            }
        }
    ],
    "tool_choice": {
        "type": "auto"
    }
}