rooms
feishu.agent.toolkit.rooms
¶
会议室工具工厂:搜索会议室、查询会议室忙闲、预订会议室(需审批)。详见 feishu.agent.toolkit。
list_meeting_room_buildings
¶
list_meeting_room_buildings(*, description: str, name: str = 'list_meeting_room_buildings', locale: str = 'zh-CN', as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
读类工厂:列出会议室所在的建筑 / 楼宇,返回一个 feishu.agent.tools.Tool。
用于先发现 building_id,再用 feishu.agent.toolkit.rooms.search_meeting_rooms 在该建筑内查会议室。
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
search_meeting_rooms
¶
search_meeting_rooms(*, description: str, name: str = 'search_meeting_rooms', locale: str = 'zh-CN', as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
读类工厂:搜索会议室(按建筑过滤),返回一个 feishu.agent.tools.Tool。
Reads the meeting-room directory for a building. When building_id is not supplied the model should first
discover one (via list_meeting_room_buildings) — scanning every building and merging results is a
product concern intentionally left out here. (Room-level filtering needs the newer vc/v1/rooms
endpoint, which this legacy room-list tool does not call, so it is not offered.)
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'search_meeting_rooms'
|
|
str
|
本地化标识。默认为 |
'zh-CN'
|
|
bool
|
是否以请求用户身份读取。默认为 |
True
|
|
Sequence[str]
|
缺少授权时申请的飞书权限范围。 |
()
|
返回:
| 类型 | 描述 |
|---|---|
Tool
|
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
query_meeting_room_free_busy
¶
query_meeting_room_free_busy(*, description: str, name: str = 'query_meeting_room_free_busy', locale: str = 'zh-CN', as_user: bool = True, auth_scopes: Sequence[str] = ()) -> Tool
读类工厂:查询会议室在某时间段内的忙闲,返回一个 feishu.agent.tools.Tool。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'query_meeting_room_free_busy'
|
|
str
|
本地化标识。默认为 |
'zh-CN'
|
|
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', locale: str = 'zh-CN', 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.Agent 先挂起并发审批卡片;用户批准后处理函数才执行写入。
参数:
| 名称 | 类型 | 描述 | 默认 |
|---|---|---|---|
|
str
|
工具描述(产品本地化文案)。 |
必需 |
|
str
|
工具名。默认为 |
'book_meeting_room'
|
|
str
|
本地化标识。默认为 |
'zh-CN'
|
|
bool
|
执行前是否要求用户审批。默认为 |
True
|
|
bool
|
是否以请求用户身份写入。默认为 |
True
|
|
Sequence[str]
|
缺少授权时申请的飞书权限范围。 |
()
|
返回:
| 类型 | 描述 |
|---|---|
Tool
|
示例:
| Python Console Session | |
|---|---|
源代码位于: feishu/agent/toolkit/rooms.py
| Python | |
|---|---|
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 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 | |