|
27 | 27 |
|
28 | 28 |
|
29 | 29 | class BigQueryToolset(GoogleApiToolset):
|
30 |
| - """Auto-generated Bigquery toolset based on Google BigQuery API v2 spec exposed by Google API discovery API""" |
| 30 | + """Auto-generated BigQuery toolset based on Google BigQuery API v2 spec exposed by Google API discovery API. |
| 31 | +
|
| 32 | + Args: |
| 33 | + client_id: OAuth2 client ID for authentication. |
| 34 | + client_secret: OAuth2 client secret for authentication. |
| 35 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 36 | + service_account: Optional service account for authentication. |
| 37 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 38 | + """ |
31 | 39 |
|
32 | 40 | def __init__(
|
33 | 41 | self,
|
34 | 42 | client_id: Optional[str] = None,
|
35 | 43 | client_secret: Optional[str] = None,
|
36 | 44 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
37 | 45 | service_account: Optional[ServiceAccount] = None,
|
| 46 | + tool_name_prefix: Optional[str] = None, |
38 | 47 | ):
|
39 | 48 | super().__init__(
|
40 |
| - "bigquery", "v2", client_id, client_secret, tool_filter, service_account |
| 49 | + "bigquery", |
| 50 | + "v2", |
| 51 | + client_id, |
| 52 | + client_secret, |
| 53 | + tool_filter, |
| 54 | + service_account, |
| 55 | + tool_name_prefix, |
41 | 56 | )
|
42 | 57 |
|
43 | 58 |
|
44 | 59 | class CalendarToolset(GoogleApiToolset):
|
45 |
| - """Auto-generated Calendar toolset based on Google Calendar API v3 spec exposed by Google API discovery API""" |
| 60 | + """Auto-generated Calendar toolset based on Google Calendar API v3 spec exposed by Google API discovery API. |
| 61 | +
|
| 62 | + Args: |
| 63 | + client_id: OAuth2 client ID for authentication. |
| 64 | + client_secret: OAuth2 client secret for authentication. |
| 65 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 66 | + service_account: Optional service account for authentication. |
| 67 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 68 | + """ |
46 | 69 |
|
47 | 70 | def __init__(
|
48 | 71 | self,
|
49 | 72 | client_id: Optional[str] = None,
|
50 | 73 | client_secret: Optional[str] = None,
|
51 | 74 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
52 | 75 | service_account: Optional[ServiceAccount] = None,
|
| 76 | + tool_name_prefix: Optional[str] = None, |
53 | 77 | ):
|
54 | 78 | super().__init__(
|
55 |
| - "calendar", "v3", client_id, client_secret, tool_filter, service_account |
| 79 | + "calendar", |
| 80 | + "v3", |
| 81 | + client_id, |
| 82 | + client_secret, |
| 83 | + tool_filter, |
| 84 | + service_account, |
| 85 | + tool_name_prefix, |
56 | 86 | )
|
57 | 87 |
|
58 | 88 |
|
59 | 89 | class GmailToolset(GoogleApiToolset):
|
60 |
| - """Auto-generated Gmail toolset based on Google Gmail API v1 spec exposed by Google API discovery API""" |
| 90 | + """Auto-generated Gmail toolset based on Google Gmail API v1 spec exposed by Google API discovery API. |
| 91 | +
|
| 92 | + Args: |
| 93 | + client_id: OAuth2 client ID for authentication. |
| 94 | + client_secret: OAuth2 client secret for authentication. |
| 95 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 96 | + service_account: Optional service account for authentication. |
| 97 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 98 | + """ |
61 | 99 |
|
62 | 100 | def __init__(
|
63 | 101 | self,
|
64 | 102 | client_id: Optional[str] = None,
|
65 | 103 | client_secret: Optional[str] = None,
|
66 | 104 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
67 | 105 | service_account: Optional[ServiceAccount] = None,
|
| 106 | + tool_name_prefix: Optional[str] = None, |
68 | 107 | ):
|
69 | 108 | super().__init__(
|
70 |
| - "gmail", "v1", client_id, client_secret, tool_filter, service_account |
| 109 | + "gmail", |
| 110 | + "v1", |
| 111 | + client_id, |
| 112 | + client_secret, |
| 113 | + tool_filter, |
| 114 | + service_account, |
| 115 | + tool_name_prefix, |
71 | 116 | )
|
72 | 117 |
|
73 | 118 |
|
74 | 119 | class YoutubeToolset(GoogleApiToolset):
|
75 |
| - """Auto-generated Youtube toolset based on Youtube API v3 spec exposed by Google API discovery API""" |
| 120 | + """Auto-generated YouTube toolset based on YouTube API v3 spec exposed by Google API discovery API. |
| 121 | +
|
| 122 | + Args: |
| 123 | + client_id: OAuth2 client ID for authentication. |
| 124 | + client_secret: OAuth2 client secret for authentication. |
| 125 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 126 | + service_account: Optional service account for authentication. |
| 127 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 128 | + """ |
76 | 129 |
|
77 | 130 | def __init__(
|
78 | 131 | self,
|
79 | 132 | client_id: Optional[str] = None,
|
80 | 133 | client_secret: Optional[str] = None,
|
81 | 134 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
82 | 135 | service_account: Optional[ServiceAccount] = None,
|
| 136 | + tool_name_prefix: Optional[str] = None, |
83 | 137 | ):
|
84 | 138 | super().__init__(
|
85 |
| - "youtube", "v3", client_id, client_secret, tool_filter, service_account |
| 139 | + "youtube", |
| 140 | + "v3", |
| 141 | + client_id, |
| 142 | + client_secret, |
| 143 | + tool_filter, |
| 144 | + service_account, |
| 145 | + tool_name_prefix, |
86 | 146 | )
|
87 | 147 |
|
88 | 148 |
|
89 | 149 | class SlidesToolset(GoogleApiToolset):
|
90 |
| - """Auto-generated Slides toolset based on Google Slides API v1 spec exposed by Google API discovery API""" |
| 150 | + """Auto-generated Slides toolset based on Google Slides API v1 spec exposed by Google API discovery API. |
| 151 | +
|
| 152 | + Args: |
| 153 | + client_id: OAuth2 client ID for authentication. |
| 154 | + client_secret: OAuth2 client secret for authentication. |
| 155 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 156 | + service_account: Optional service account for authentication. |
| 157 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 158 | + """ |
91 | 159 |
|
92 | 160 | def __init__(
|
93 | 161 | self,
|
94 | 162 | client_id: Optional[str] = None,
|
95 | 163 | client_secret: Optional[str] = None,
|
96 | 164 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
97 | 165 | service_account: Optional[ServiceAccount] = None,
|
| 166 | + tool_name_prefix: Optional[str] = None, |
98 | 167 | ):
|
99 | 168 | super().__init__(
|
100 |
| - "slides", "v1", client_id, client_secret, tool_filter, service_account |
| 169 | + "slides", |
| 170 | + "v1", |
| 171 | + client_id, |
| 172 | + client_secret, |
| 173 | + tool_filter, |
| 174 | + service_account, |
| 175 | + tool_name_prefix, |
101 | 176 | )
|
102 | 177 |
|
103 | 178 |
|
104 | 179 | class SheetsToolset(GoogleApiToolset):
|
105 |
| - """Auto-generated Sheets toolset based on Google Sheets API v4 spec exposed by Google API discovery API""" |
| 180 | + """Auto-generated Sheets toolset based on Google Sheets API v4 spec exposed by Google API discovery API. |
| 181 | +
|
| 182 | + Args: |
| 183 | + client_id: OAuth2 client ID for authentication. |
| 184 | + client_secret: OAuth2 client secret for authentication. |
| 185 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 186 | + service_account: Optional service account for authentication. |
| 187 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 188 | + """ |
106 | 189 |
|
107 | 190 | def __init__(
|
108 | 191 | self,
|
109 | 192 | client_id: Optional[str] = None,
|
110 | 193 | client_secret: Optional[str] = None,
|
111 | 194 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
112 | 195 | service_account: Optional[ServiceAccount] = None,
|
| 196 | + tool_name_prefix: Optional[str] = None, |
113 | 197 | ):
|
114 |
| - super().__init__("sheets", "v4", client_id, client_secret, tool_filter) |
| 198 | + super().__init__( |
| 199 | + "sheets", |
| 200 | + "v4", |
| 201 | + client_id, |
| 202 | + client_secret, |
| 203 | + tool_filter, |
| 204 | + service_account, |
| 205 | + tool_name_prefix, |
| 206 | + ) |
115 | 207 |
|
116 | 208 |
|
117 | 209 | class DocsToolset(GoogleApiToolset):
|
118 |
| - """Auto-generated Docs toolset based on Google Docs API v1 spec exposed by Google API discovery API""" |
| 210 | + """Auto-generated Docs toolset based on Google Docs API v1 spec exposed by Google API discovery API. |
| 211 | +
|
| 212 | + Args: |
| 213 | + client_id: OAuth2 client ID for authentication. |
| 214 | + client_secret: OAuth2 client secret for authentication. |
| 215 | + tool_filter: Optional filter to include only specific tools or use a predicate function. |
| 216 | + service_account: Optional service account for authentication. |
| 217 | + tool_name_prefix: Optional prefix to add to all tool names in this toolset. |
| 218 | + """ |
119 | 219 |
|
120 | 220 | def __init__(
|
121 | 221 | self,
|
122 | 222 | client_id: Optional[str] = None,
|
123 | 223 | client_secret: Optional[str] = None,
|
124 | 224 | tool_filter: Optional[Union[ToolPredicate, List[str]]] = None,
|
125 | 225 | service_account: Optional[ServiceAccount] = None,
|
| 226 | + tool_name_prefix: Optional[str] = None, |
126 | 227 | ):
|
127 | 228 | super().__init__(
|
128 |
| - "docs", "v1", client_id, client_secret, tool_filter, service_account |
| 229 | + "docs", |
| 230 | + "v1", |
| 231 | + client_id, |
| 232 | + client_secret, |
| 233 | + tool_filter, |
| 234 | + service_account, |
| 235 | + tool_name_prefix, |
129 | 236 | )
|
0 commit comments