mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-17 11:14:19 +00:00
feat(agent-runner): expose effective prompt pull api
This commit is contained in:
@@ -283,6 +283,7 @@ class TestContextAccessOtherAPIs:
|
||||
# Real call
|
||||
context_access = await builder._build_context_access(mock_event, mock_descriptor, binding)
|
||||
|
||||
assert context_access['available_apis']['prompt_get'] is False
|
||||
assert context_access['available_apis']['history_page'] is True
|
||||
assert context_access['available_apis']['history_search'] is True
|
||||
|
||||
|
||||
@@ -669,7 +669,7 @@ class TestQueryEntryAdapterParams:
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_prompt_not_pushed_into_adapter_extra(self, clean_agent_state):
|
||||
"""Pipeline prompt is not pushed into adapter.extra or exposed via prompt_get."""
|
||||
"""Pipeline prompt is not pushed into adapter.extra; runners pull it through prompt_get."""
|
||||
from langbot_plugin.api.entities.builtin.provider import prompt as provider_prompt
|
||||
|
||||
db_engine = clean_agent_state
|
||||
@@ -699,7 +699,7 @@ class TestQueryEntryAdapterParams:
|
||||
context = plugin_connector.contexts[0]
|
||||
assert "prompt" not in context
|
||||
assert "prompt" not in context["adapter"]["extra"]
|
||||
assert "prompt_get" not in context["context"]["available_apis"]
|
||||
assert context["context"]["available_apis"]["prompt_get"] is True
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_params_filtering_keeps_public_param(self, clean_agent_state):
|
||||
|
||||
Reference in New Issue
Block a user