Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion application/single_app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
EXECUTOR_TYPE = 'thread'
EXECUTOR_MAX_WORKERS = 30
SESSION_TYPE = 'filesystem'
VERSION = "0.261.101"
VERSION = "0.261.102"
IS_DEVELOPMENT = is_development_env_enabled()

SESSION_COOKIE_SAMESITE = os.getenv('SESSION_COOKIE_SAMESITE', 'Lax')
Expand Down
21 changes: 21 additions & 0 deletions application/single_app/functions_orchestration_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,27 @@ def conversation_user_urls(user_message, snapshot=None, message_ids=None, answer
return _string_list(urls, limit=8)


def build_capability_request_context(
user_id, identity, user_message, agent_catalog, action_catalog=None, *, allowed_user_urls=None,
):
"""Apply the same caller-specific capability gates to planning, revisions, and execution."""
identity = identity or {}
urls = (
list(allowed_user_urls) if allowed_user_urls is not None
else conversation_user_urls(user_message)
)
return {
'user_id': user_id,
'user_message': user_message or '',
'message_urls': urls,
'user_roles': identity.get('user_roles') or [],
'user_email': identity.get('user_email'),
'user_enable_agents': identity.get('user_enable_agents', True),
'agent_catalog': list(agent_catalog or ()),
'action_catalog': list(action_catalog or ()),
}


def build_conversation_signals(messages, user_message, *, truncated=False, message_ids=None):
"""Project already bounded history for the planner; the route owns loading it."""
allowed = set(message_ids) if message_ids is not None else None
Expand Down
365 changes: 365 additions & 0 deletions application/single_app/functions_orchestration_plan_editing.py

Large diffs are not rendered by default.

Loading