|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from typing import List, Optional |
| 5 | +from typing import List, Iterable, Optional |
6 | 6 |
|
7 | 7 | import httpx |
8 | 8 |
|
@@ -52,6 +52,7 @@ def create( |
52 | 52 | color_theme: Optional[str] | NotGiven = NOT_GIVEN, |
53 | 53 | debug: bool | NotGiven = NOT_GIVEN, |
54 | 54 | extapi_ids: List[str] | NotGiven = NOT_GIVEN, |
| 55 | + interaction_rules: Iterable[bot_create_params.InteractionRule] | NotGiven = NOT_GIVEN, |
55 | 56 | magic_input: Optional[str] | NotGiven = NOT_GIVEN, |
56 | 57 | max_rows: int | NotGiven = NOT_GIVEN, |
57 | 58 | publish: bool | NotGiven = NOT_GIVEN, |
@@ -80,6 +81,8 @@ def create( |
80 | 81 |
|
81 | 82 | extapi_ids: 扩展 API ID 列表,扩展 API ID 的逗号分隔列表。 |
82 | 83 |
|
| 84 | + interaction_rules: 交互规则列表,用于定义 bot 的行为规则 |
| 85 | +
|
83 | 86 | magic_input: 魔法提示词 |
84 | 87 |
|
85 | 88 | max_rows: 最大返回行数,默认不限制 |
@@ -111,6 +114,7 @@ def create( |
111 | 114 | "color_theme": color_theme, |
112 | 115 | "debug": debug, |
113 | 116 | "extapi_ids": extapi_ids, |
| 117 | + "interaction_rules": interaction_rules, |
114 | 118 | "magic_input": magic_input, |
115 | 119 | "max_rows": max_rows, |
116 | 120 | "publish": publish, |
@@ -169,6 +173,7 @@ def update( |
169 | 173 | datasource_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
170 | 174 | debug: Optional[bool] | NotGiven = NOT_GIVEN, |
171 | 175 | extapi_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 176 | + interaction_rules: Optional[Iterable[bot_update_params.InteractionRule]] | NotGiven = NOT_GIVEN, |
172 | 177 | magic_input: Optional[str] | NotGiven = NOT_GIVEN, |
173 | 178 | max_rows: Optional[int] | NotGiven = NOT_GIVEN, |
174 | 179 | name: Optional[str] | NotGiven = NOT_GIVEN, |
@@ -198,6 +203,8 @@ def update( |
198 | 203 |
|
199 | 204 | extapi_ids: 扩展 API ID 列表,扩展 API ID 的逗号分隔列表。 |
200 | 205 |
|
| 206 | + interaction_rules: 交互规则列表,用于定义 bot 的行为规则 |
| 207 | +
|
201 | 208 | magic_input: 魔法提示词 |
202 | 209 |
|
203 | 210 | max_rows: 最大返回行数,默认不限制 |
@@ -233,6 +240,7 @@ def update( |
233 | 240 | "datasource_ids": datasource_ids, |
234 | 241 | "debug": debug, |
235 | 242 | "extapi_ids": extapi_ids, |
| 243 | + "interaction_rules": interaction_rules, |
236 | 244 | "magic_input": magic_input, |
237 | 245 | "max_rows": max_rows, |
238 | 246 | "name": name, |
@@ -405,6 +413,7 @@ async def create( |
405 | 413 | color_theme: Optional[str] | NotGiven = NOT_GIVEN, |
406 | 414 | debug: bool | NotGiven = NOT_GIVEN, |
407 | 415 | extapi_ids: List[str] | NotGiven = NOT_GIVEN, |
| 416 | + interaction_rules: Iterable[bot_create_params.InteractionRule] | NotGiven = NOT_GIVEN, |
408 | 417 | magic_input: Optional[str] | NotGiven = NOT_GIVEN, |
409 | 418 | max_rows: int | NotGiven = NOT_GIVEN, |
410 | 419 | publish: bool | NotGiven = NOT_GIVEN, |
@@ -433,6 +442,8 @@ async def create( |
433 | 442 |
|
434 | 443 | extapi_ids: 扩展 API ID 列表,扩展 API ID 的逗号分隔列表。 |
435 | 444 |
|
| 445 | + interaction_rules: 交互规则列表,用于定义 bot 的行为规则 |
| 446 | +
|
436 | 447 | magic_input: 魔法提示词 |
437 | 448 |
|
438 | 449 | max_rows: 最大返回行数,默认不限制 |
@@ -464,6 +475,7 @@ async def create( |
464 | 475 | "color_theme": color_theme, |
465 | 476 | "debug": debug, |
466 | 477 | "extapi_ids": extapi_ids, |
| 478 | + "interaction_rules": interaction_rules, |
467 | 479 | "magic_input": magic_input, |
468 | 480 | "max_rows": max_rows, |
469 | 481 | "publish": publish, |
@@ -522,6 +534,7 @@ async def update( |
522 | 534 | datasource_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
523 | 535 | debug: Optional[bool] | NotGiven = NOT_GIVEN, |
524 | 536 | extapi_ids: Optional[List[str]] | NotGiven = NOT_GIVEN, |
| 537 | + interaction_rules: Optional[Iterable[bot_update_params.InteractionRule]] | NotGiven = NOT_GIVEN, |
525 | 538 | magic_input: Optional[str] | NotGiven = NOT_GIVEN, |
526 | 539 | max_rows: Optional[int] | NotGiven = NOT_GIVEN, |
527 | 540 | name: Optional[str] | NotGiven = NOT_GIVEN, |
@@ -551,6 +564,8 @@ async def update( |
551 | 564 |
|
552 | 565 | extapi_ids: 扩展 API ID 列表,扩展 API ID 的逗号分隔列表。 |
553 | 566 |
|
| 567 | + interaction_rules: 交互规则列表,用于定义 bot 的行为规则 |
| 568 | +
|
554 | 569 | magic_input: 魔法提示词 |
555 | 570 |
|
556 | 571 | max_rows: 最大返回行数,默认不限制 |
@@ -586,6 +601,7 @@ async def update( |
586 | 601 | "datasource_ids": datasource_ids, |
587 | 602 | "debug": debug, |
588 | 603 | "extapi_ids": extapi_ids, |
| 604 | + "interaction_rules": interaction_rules, |
589 | 605 | "magic_input": magic_input, |
590 | 606 | "max_rows": max_rows, |
591 | 607 | "name": name, |
|
0 commit comments