rooms
feishu.agent.toolkit.rooms
¶
会议室工具工厂:列出会议室、查询会议室忙闲、预订会议室(需审批)。详见 feishu.agent.toolkit。
list_meeting_room_buildings
¶
list_meeting_room_buildings(*, description: str, name: str = 'list_meeting_room_buildings', as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
读类工厂:列出会议室所在的建筑 / 楼宇,返回一个 feishu.agent.tools.Tool。
用于先发现 building_id,再用 feishu.agent.toolkit.rooms.list_meeting_rooms 在该建筑内列会议室。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'list_meeting_room_buildings'
|
|
bool
|
是否以请求用户身份读取。默认为 |
True
|
|
Sequence[str]
|
缺少授权时申请的飞书权限范围。 |
()
|
返回:
| 类型 | 描述 |
|---|---|
Tool
|
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
list_meeting_rooms
¶
list_meeting_rooms(*, description: str, name: str = 'list_meeting_rooms', as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
读类工厂:列出某建筑内的会议室,返回一个 feishu.agent.tools.Tool。
读取指定建筑下的会议室目录。未提供 building_id 时,模型应先通过
feishu.agent.toolkit.rooms.list_meeting_room_buildings 发现建筑;遍历所有建筑并合并结果属于产品层策略,
本工厂不内置。按会议室能力筛选需要更新的 vc/v1/rooms 接口,当前旧版会议室列表接口不提供该能力。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'list_meeting_rooms'
|
|
bool
|
是否以请求用户身份读取。默认为 |
True
|
|
Sequence[str]
|
缺少授权时申请的飞书权限范围。 |
()
|
返回:
| 类型 | 描述 |
|---|---|
Tool
|
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
query_meeting_room_freebusy
¶
query_meeting_room_freebusy(*, description: str, name: str = 'query_meeting_room_freebusy', as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
读类工厂:查询会议室在某时间段内的忙闲,返回一个 feishu.agent.tools.Tool。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'query_meeting_room_freebusy'
|
|
bool
|
是否以请求用户身份读取。默认为 |
True
|
|
Sequence[str]
|
缺少授权时申请的飞书权限范围。 |
()
|
返回:
| 类型 | 描述 |
|---|---|
Tool
|
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
book_meeting_room
¶
book_meeting_room(*, description: str, name: str = 'book_meeting_room', timezone: str = 'Asia/Shanghai', requires_approval: bool = True, as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
写类工厂:预订会议室,返回一个需审批的 feishu.agent.tools.Tool。
飞书没有独立的“订会议室”接口:预订会议室通过创建一条日程、再把会议室作为
type=resource 的日程参与人加入完成。requires_approval=True
时,feishu.agent.loop.AgentEngine 先挂起并发审批卡片;用户批准后处理函数才执行写入。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'book_meeting_room'
|
|
str
|
ISO 时间换算所用时区。默认为 |
'Asia/Shanghai'
|
|
bool
|
执行前是否要求用户审批。默认为 |
True
|
|
bool
|
是否以请求用户身份写入。默认为 |
True
|
|
Sequence[str]
|
缺少授权时申请的飞书权限范围。 |
()
|
返回:
| 类型 | 描述 |
|---|---|
Tool
|
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
| Python | |
|---|---|
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 | |