feat(agent-runner): expose effective prompt pull api

This commit is contained in:
huanghuoguoguo
2026-06-13 15:31:54 +08:00
parent 3984e0fe40
commit d0b0a682c7
6 changed files with 77 additions and 2 deletions
@@ -422,6 +422,7 @@ class AgentRunContextBuilder:
'reason': 'current_event_only',
},
'available_apis': {
'prompt_get': False,
'history_page': history_page_enabled,
'history_search': history_search_enabled,
'event_get': event_get_enabled,
@@ -96,6 +96,8 @@ class AgentRunOrchestrator:
context.get('state', {}),
)
session_query_id = adapter_context.get('query_id')
if query is not None or session_query_id is not None:
context['context']['available_apis']['prompt_get'] = True
if 'params' in adapter_context:
context['adapter']['extra']['params'] = adapter_context['params']