mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-26 06:16:09 +00:00
6ef40fbd68
- Add pre-computed _authorized_ids (frozenset) at session registration for O(1) lookup - Refactor is_resource_allowed() from linear search to set membership check - Add thread-safe locking to get_session_registry() singleton - Cache _session_registry and _state_store references in orchestrator __init__ - Add asyncio.gather() for parallel resource building in AgentResourceBuilder - Create shared test fixtures in tests/unit_tests/agent/conftest.py - Update test files to import from shared conftest.py Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
43 lines
1.8 KiB
YAML
43 lines
1.8 KiB
YAML
name: ai
|
|
label:
|
|
en_US: AI Feature
|
|
zh_Hans: AI 能力
|
|
stages:
|
|
- name: runner
|
|
label:
|
|
en_US: Runner
|
|
zh_Hans: 运行方式
|
|
description:
|
|
en_US: Strategy to call AI to process messages
|
|
zh_Hans: 调用 AI 处理消息的方式
|
|
config:
|
|
- name: id
|
|
label:
|
|
en_US: Runner
|
|
zh_Hans: 运行器
|
|
type: select
|
|
required: true
|
|
# Options and default are dynamically populated from AgentRunnerRegistry
|
|
- name: expire-time
|
|
label:
|
|
en_US: Conversation expire time (seconds)
|
|
zh_Hans: 单个对话过期时间(秒)
|
|
description:
|
|
en_US: >-
|
|
Maximum idle time of a single conversation, measured from the last
|
|
message/preprocess update time. When a new message arrives and the
|
|
current conversation has been idle for longer than this value, the
|
|
existing external conversation id is discarded and a new one is
|
|
started automatically — the user does not need to trigger a reset
|
|
manually. Set to 0 to disable expiry (conversations live until the
|
|
user or another mechanism resets them).
|
|
zh_Hans: >-
|
|
单个对话的最长空闲时间,从最后一条消息/preprocess 更新时间开始计算。
|
|
当新消息到达且当前对话空闲时间已超过该值时,旧的外部对话 ID 会被自动丢弃并开启新对话,
|
|
用户无需手动重置。设置为 0 表示不限制过期时间(对话会一直保留,直到用户或其他机制主动重置)。
|
|
type: integer
|
|
required: true
|
|
default: 0
|
|
# Runner config stages are dynamically added from AgentRunnerRegistry
|
|
# Each plugin runner's config schema is added as a separate stage
|
|
# The stage name matches the runner id for frontend matching |