File size: 2,114 Bytes
75309ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
guided_json_search_query = {
  "type": "object",
  "properties": {
    "search_queries": {
      "type": "array",
      "items":{"type": "string"},
      "description": "List of generated search queries"
    }
  },
  "required": ["search_query"]
}


guided_json_search_query_two = {
  "type": "object",
  "properties": {
    "search_queries": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "engine": {
            "type": "string",
            "enum": ["search", "shopping"],
            "description": "The search engine to use (either 'search' or 'shopping')"
          },
          "query": {
            "type": "string",
            "description": "The search query string"
          }
        },
        "required": ["engine", "query"]
      },
      "minItems": 1,
      "description": "List of generated search queries with their corresponding engines"
    }
  },
  "required": ["search_queries"]
}

guided_json_best_url = {
  "type": "object",
  "properties": {
    "best_url": {
      "type": "string",
      "description": "The URL of the Serper results that aligns most with the instructions from your manager."
    },
    "pdf": {
      "type": "boolean",
      "description": "A boolean value indicating whether the URL is a PDF or not. This should be True if the URL is a PDF, and False otherwise."
    }
  },
  "required": ["best_url", "pdf"]
}


guided_json_best_url_two = {
  "type": "object",
  "properties": {
    "best_url": {
      "type": "string",
      "description": "The URL of the Serper results that aligns most with the instructions from your manager."
    },
  },
  "required": ["best_url"]
}


guided_json_router_decision = {
  "type": "object",
  "properties": {
    "router_decision": {
      "type": "string",
      "description": "Return the next agent to pass control to."
    }
  },
  "required": ["router_decision"]
}


guided_json_parse_expert = {
  "type": "object",
  "properties": {
    "expert": {
      "type": "string",
      "description": "Expert Planner or Expert Writer"
    }
  },
  "required": ["expert"]
}