Skip to content

Commit 5a4459d

Browse files
feat(api): api update
1 parent d60ba62 commit 5a4459d

15 files changed

+132
-50
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 101
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-fe84e8eb2f41baeec783d2aaac71100fa5404ae6b4da86f8b2a906e6cd87c2ae.yml
3-
openapi_spec_hash: 8a180d3f138f323ca7a48130c7806f44
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-dddc0f4169fb9502273cea24a5d58bee34807f1d73ce70c757fea2e468dffbf1.yml
3+
openapi_spec_hash: 20ff10ac5c651f39f70c091a1b64b9a1
44
config_hash: acdf4142177ed1932c2d82372693f811

src/asktable/_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def datasources(self) -> DatasourcesResource:
184184

185185
@cached_property
186186
def bots(self) -> BotsResource:
187-
"""机器人管理"""
187+
"""AI 数据助手"""
188188
from .resources.bots import BotsResource
189189

190190
return BotsResource(self)
@@ -489,7 +489,7 @@ def datasources(self) -> AsyncDatasourcesResource:
489489

490490
@cached_property
491491
def bots(self) -> AsyncBotsResource:
492-
"""机器人管理"""
492+
"""AI 数据助手"""
493493
from .resources.bots import AsyncBotsResource
494494

495495
return AsyncBotsResource(self)
@@ -745,7 +745,7 @@ def datasources(self) -> datasources.DatasourcesResourceWithRawResponse:
745745

746746
@cached_property
747747
def bots(self) -> bots.BotsResourceWithRawResponse:
748-
"""机器人管理"""
748+
"""AI 数据助手"""
749749
from .resources.bots import BotsResourceWithRawResponse
750750

751751
return BotsResourceWithRawResponse(self._client.bots)
@@ -889,7 +889,7 @@ def datasources(self) -> datasources.AsyncDatasourcesResourceWithRawResponse:
889889

890890
@cached_property
891891
def bots(self) -> bots.AsyncBotsResourceWithRawResponse:
892-
"""机器人管理"""
892+
"""AI 数据助手"""
893893
from .resources.bots import AsyncBotsResourceWithRawResponse
894894

895895
return AsyncBotsResourceWithRawResponse(self._client.bots)
@@ -1033,7 +1033,7 @@ def datasources(self) -> datasources.DatasourcesResourceWithStreamingResponse:
10331033

10341034
@cached_property
10351035
def bots(self) -> bots.BotsResourceWithStreamingResponse:
1036-
"""机器人管理"""
1036+
"""AI 数据助手"""
10371037
from .resources.bots import BotsResourceWithStreamingResponse
10381038

10391039
return BotsResourceWithStreamingResponse(self._client.bots)
@@ -1177,7 +1177,7 @@ def datasources(self) -> datasources.AsyncDatasourcesResourceWithStreamingRespon
11771177

11781178
@cached_property
11791179
def bots(self) -> bots.AsyncBotsResourceWithStreamingResponse:
1180-
"""机器人管理"""
1180+
"""AI 数据助手"""
11811181
from .resources.bots import AsyncBotsResourceWithStreamingResponse
11821182

11831183
return AsyncBotsResourceWithStreamingResponse(self._client.bots)

src/asktable/resources/bots.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class BotsResource(SyncAPIResource):
29-
"""机器人管理"""
29+
"""AI 数据助手"""
3030

3131
@cached_property
3232
def with_raw_response(self) -> BotsResourceWithRawResponse:
@@ -70,7 +70,7 @@ def create(
7070
timeout: float | httpx.Timeout | None | NotGiven = not_given,
7171
) -> Chatbot:
7272
"""
73-
创建一个新的 Bot
73+
创建一个新的 AI 数据助手
7474
7575
Args:
7676
datasource_ids: 数据源 ID,目前只支持 1 个数据源。
@@ -81,15 +81,15 @@ def create(
8181
8282
debug: 调试模式
8383
84-
interaction_rules: 交互规则列表,用于定义 bot 的行为规则
84+
interaction_rules: 交互规则列表,用于定义 AI 数据助手的行为规则
8585
8686
magic_input: 魔法提示词
8787
8888
max_rows: 最大返回行数,默认不限制
8989
9090
publish: 是否公开
9191
92-
query_balance: bot 的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
92+
query_balance: AI 数据助手的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
9393
9494
sample_questions: 示例问题列表
9595
@@ -142,7 +142,7 @@ def retrieve(
142142
timeout: float | httpx.Timeout | None | NotGiven = not_given,
143143
) -> Chatbot:
144144
"""
145-
获取某个 Bot
145+
获取某个 AI 数据助手
146146
147147
Args:
148148
extra_headers: Send extra headers
@@ -188,7 +188,7 @@ def update(
188188
timeout: float | httpx.Timeout | None | NotGiven = not_given,
189189
) -> Chatbot:
190190
"""
191-
更新某个 Bot
191+
更新某个 AI 数据助手
192192
193193
Args:
194194
avatar_url: 头像 URL
@@ -199,7 +199,7 @@ def update(
199199
200200
debug: 调试模式
201201
202-
interaction_rules: 交互规则列表,用于定义 bot 的行为规则
202+
interaction_rules: 交互规则列表,用于定义 AI 数据助手的行为规则
203203
204204
magic_input: 魔法提示词
205205
@@ -209,7 +209,7 @@ def update(
209209
210210
publish: 是否公开
211211
212-
query_balance: bot 的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
212+
query_balance: AI 数据助手的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
213213
214214
sample_questions: 示例问题列表
215215
@@ -268,7 +268,7 @@ def list(
268268
timeout: float | httpx.Timeout | None | NotGiven = not_given,
269269
) -> SyncPage[Chatbot]:
270270
"""
271-
查询所有 Bot
271+
查询所有 AI 数据助手
272272
273273
Args:
274274
bot_ids: Bot ID
@@ -320,7 +320,7 @@ def delete(
320320
timeout: float | httpx.Timeout | None | NotGiven = not_given,
321321
) -> object:
322322
"""
323-
删除某个 Bot
323+
删除某个 AI 数据助手
324324
325325
Args:
326326
extra_headers: Send extra headers
@@ -381,7 +381,7 @@ def invite(
381381

382382

383383
class AsyncBotsResource(AsyncAPIResource):
384-
"""机器人管理"""
384+
"""AI 数据助手"""
385385

386386
@cached_property
387387
def with_raw_response(self) -> AsyncBotsResourceWithRawResponse:
@@ -425,7 +425,7 @@ async def create(
425425
timeout: float | httpx.Timeout | None | NotGiven = not_given,
426426
) -> Chatbot:
427427
"""
428-
创建一个新的 Bot
428+
创建一个新的 AI 数据助手
429429
430430
Args:
431431
datasource_ids: 数据源 ID,目前只支持 1 个数据源。
@@ -436,15 +436,15 @@ async def create(
436436
437437
debug: 调试模式
438438
439-
interaction_rules: 交互规则列表,用于定义 bot 的行为规则
439+
interaction_rules: 交互规则列表,用于定义 AI 数据助手的行为规则
440440
441441
magic_input: 魔法提示词
442442
443443
max_rows: 最大返回行数,默认不限制
444444
445445
publish: 是否公开
446446
447-
query_balance: bot 的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
447+
query_balance: AI 数据助手的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
448448
449449
sample_questions: 示例问题列表
450450
@@ -497,7 +497,7 @@ async def retrieve(
497497
timeout: float | httpx.Timeout | None | NotGiven = not_given,
498498
) -> Chatbot:
499499
"""
500-
获取某个 Bot
500+
获取某个 AI 数据助手
501501
502502
Args:
503503
extra_headers: Send extra headers
@@ -543,7 +543,7 @@ async def update(
543543
timeout: float | httpx.Timeout | None | NotGiven = not_given,
544544
) -> Chatbot:
545545
"""
546-
更新某个 Bot
546+
更新某个 AI 数据助手
547547
548548
Args:
549549
avatar_url: 头像 URL
@@ -554,7 +554,7 @@ async def update(
554554
555555
debug: 调试模式
556556
557-
interaction_rules: 交互规则列表,用于定义 bot 的行为规则
557+
interaction_rules: 交互规则列表,用于定义 AI 数据助手的行为规则
558558
559559
magic_input: 魔法提示词
560560
@@ -564,7 +564,7 @@ async def update(
564564
565565
publish: 是否公开
566566
567-
query_balance: bot 的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
567+
query_balance: AI 数据助手的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数
568568
569569
sample_questions: 示例问题列表
570570
@@ -623,7 +623,7 @@ def list(
623623
timeout: float | httpx.Timeout | None | NotGiven = not_given,
624624
) -> AsyncPaginator[Chatbot, AsyncPage[Chatbot]]:
625625
"""
626-
查询所有 Bot
626+
查询所有 AI 数据助手
627627
628628
Args:
629629
bot_ids: Bot ID
@@ -675,7 +675,7 @@ async def delete(
675675
timeout: float | httpx.Timeout | None | NotGiven = not_given,
676676
) -> object:
677677
"""
678-
删除某个 Bot
678+
删除某个 AI 数据助手
679679
680680
Args:
681681
extra_headers: Send extra headers

src/asktable/resources/chats/chats.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def create(
8080
创建对话
8181
8282
Args:
83-
bot_id: 机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
84-
可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
83+
bot_id: AI 数据助手 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在 AI 数据助手中
84+
你可以定义可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
8585
8686
name: New name for the chat
8787
@@ -279,8 +279,8 @@ async def create(
279279
创建对话
280280
281281
Args:
282-
bot_id: 机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
283-
可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
282+
bot_id: AI 数据助手 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在 AI 数据助手中
283+
你可以定义可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
284284
285285
name: New name for the chat
286286

src/asktable/types/bot_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BotCreateParams(TypedDict, total=False):
2424
"""调试模式"""
2525

2626
interaction_rules: Iterable[InteractionRule]
27-
"""交互规则列表,用于定义 bot 的行为规则"""
27+
"""交互规则列表,用于定义 AI 数据助手的行为规则"""
2828

2929
magic_input: Optional[str]
3030
"""魔法提示词"""
@@ -36,7 +36,7 @@ class BotCreateParams(TypedDict, total=False):
3636
"""是否公开"""
3737

3838
query_balance: Optional[int]
39-
"""bot 的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数"""
39+
"""AI 数据助手的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数"""
4040

4141
sample_questions: Optional[SequenceNotStr[str]]
4242
"""示例问题列表"""

src/asktable/types/bot_update_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BotUpdateParams(TypedDict, total=False):
2424
"""调试模式"""
2525

2626
interaction_rules: Optional[Iterable[InteractionRule]]
27-
"""交互规则列表,用于定义 bot 的行为规则"""
27+
"""交互规则列表,用于定义 AI 数据助手的行为规则"""
2828

2929
magic_input: Optional[str]
3030
"""魔法提示词"""
@@ -39,7 +39,7 @@ class BotUpdateParams(TypedDict, total=False):
3939
"""是否公开"""
4040

4141
query_balance: Optional[int]
42-
"""bot 的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数"""
42+
"""AI 数据助手的查询次数,默认是 None,表示无限次查询,入参为大于等于 0 的整数"""
4343

4444
sample_questions: Optional[SequenceNotStr[str]]
4545
"""示例问题列表"""

src/asktable/types/chat_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
class ChatCreateParams(TypedDict, total=False):
1212
bot_id: Optional[str]
1313
"""
14-
机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
15-
可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
14+
AI 数据助手 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在 AI 数据助手中
15+
你可以定义可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
1616
"""
1717

1818
name: Optional[str]

src/asktable/types/chat_create_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ChatCreateResponse(BaseModel):
2525

2626
bot_id: Optional[str] = None
2727
"""
28-
机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
29-
可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
28+
AI 数据助手 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在 AI 数据助手中
29+
你可以定义可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
3030
"""
3131

3232
error_detail: Optional[Dict[str, object]] = None

src/asktable/types/chat_list_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ChatListResponse(BaseModel):
2525

2626
bot_id: Optional[str] = None
2727
"""
28-
机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
29-
可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
28+
AI 数据助手 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在 AI 数据助手中
29+
你可以定义可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
3030
"""
3131

3232
error_detail: Optional[Dict[str, object]] = None

src/asktable/types/chat_retrieve_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class ChatRetrieveResponse(BaseModel):
2525

2626
bot_id: Optional[str] = None
2727
"""
28-
机器人 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在机器人中你可以定义
29-
可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
28+
AI 数据助手 ID,如果需要使用高级功能,请使用 bot_id 来创建对话。在 AI 数据助手中
29+
你可以定义可以访问的数据、可以执行的任务以及是否开启调试模式等设置。
3030
"""
3131

3232
datasource_ids: Optional[List[str]] = None

0 commit comments

Comments
 (0)