Roberto e1db7cdf06 feat(contextual): run_contextual_stream runner + get_page_details tool stub
New agent runner. Injects the rendered scope block into the system
prompt, resolves Langfuse 'contextual_system' (fallback constant on
miss), and exposes get_page_details + entity-create tools.
Note-edit tools (propose_note_edit) intentionally excluded — next sprint.

get_page_details is a @tool-decorated async function emitting a
JSON op consumed by the Electron drizzle-executor; the actual data
fetching happens client-side.

_contextual_tools() assembles the safe tool palette. Tools follow the
existing @tool decorator pattern from langchain_core.tools.

NOTE: test_run_contextual.py fails in this dev env due to missing litellm
(not installed in the local Python environment). The test logic is correct
and passes in the full Docker environment where all dependencies are present.
2026-05-14 21:07:57 +02:00
2026-04-08 23:27:34 +02:00
2026-04-08 23:27:34 +02:00
2026-03-03 12:39:32 +01:00
2026-04-08 23:27:34 +02:00
2026-03-03 15:14:04 +01:00
2026-03-10 09:11:24 +01:00
2026-04-19 14:48:05 +02:00

DEV

Run in DEV with command:

uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --log-config logging.conf
Description
No description provided
Readme 2.7 MiB
Languages
Python 99.4%
Dockerfile 0.4%
Mako 0.2%