Skip to main content

No project description provided

Project description

keble-agentic-chat

keble-agentic-chat is the host-neutral chat runtime package for Keble Pydantic-AI and LangGraph based chat flows. It owns durable chat history, timeline schemas, client/server action rows, background subagent sessions, live socket frames, tool-provider composition, and LangGraph turn execution.

Verified State

Checked on 2026-06-30 against pyproject.toml, keble_agentic_chat/, package exports, and the current test layout.

  • Package: keble-agentic-chat 3.45.1
  • Python: >=3.13,<3.14
  • Critical deps: keble-helpers, keble-db, keble-exceptions, pydantic-ai-slim, langgraph, langgraph-checkpoint, langgraph-checkpoint-mongodb, tenacity
  • Source roots: runtime/, schemas/, store/, crud/, subagents/, adapters/
  • Public exports: AgenticChat, LangGraph runtime helpers, action and live-frame schemas, subagent/session contracts, and generic browser client-tool primitives.

Runtime Contract

  • LangGraphChatRuntime is the turn engine. Pydantic-AI executes provider calls; LangGraph owns control flow, interrupts, resume, and checkpointing.
  • AgenticChat is a thin per-scope holder for durable storage and run control. It is not a feature-specific orchestration layer.
  • Timeline entries are the public read contract. Raw provider messages are private resume state.
  • The LangGraph checkpoint pending channel is the deferred-batch source of truth. ChatPendingResume only carries origin metadata for host dependency rehydration.
  • Hosts compose package-owned GeneralChatToolProvider, ClientActionChatToolProvider, and subagent delegation providers instead of reimplementing tool registration.

Testing

Default tests are offline and must exclude live, slow, eval, local-stack, DB-stack, and container layers.

uv sync --group test
uv run pytest -m "not live and not slow and not eval and not local_stack and not db_stack and not container"
uv run npx --yes pyright .

Integration and live tests must use the marker and env guards declared in pyproject.toml. Package-owned test helpers live under keble_agentic_chat.testing; do not recreate root-level tests/config.py, root test packages, or cross-test imports through tests.*.

Mongo/Redis/Qdrant integration settings load explicit process env first, then the umbrella keble.backend/.env through keble_db.testing.resolve_test_env. Live Azure model lists map from backend AZURE_PROVIDER_ENDPOINTS, AZURE_PROVIDER_API_TOKENS, and AZURE_OPENAI_CHAT_MODELS_DEPLOYMENTS when package-local list env vars are absent. Set KEBLE_BACKEND_ENV_FILE=/path/to/.env from unusual worktree or CI layouts, and keep package-owned test database/collection names isolated.

Change Logs

Historical release notes and long AI change history live under logs/. Keep this README focused on the active contract only.

Side Effect If Changes

  • Backend chat rooms, guided bootstrap, positioning rooms, and any chat client-tool flow depend on pending_resume staying an origin-metadata bridge rather than a second authorization gate.
  • Frontend action rendering depends on the typed client-tool payload/result schemas staying aligned with keble-core.
  • Storage or timeline schema changes require backend, frontend, and tests to move together.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keble_agentic_chat-3.45.1.tar.gz (659.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keble_agentic_chat-3.45.1-py3-none-any.whl (176.4 kB view details)

Uploaded Python 3

File details

Details for the file keble_agentic_chat-3.45.1.tar.gz.

File metadata

  • Download URL: keble_agentic_chat-3.45.1.tar.gz
  • Upload date:
  • Size: 659.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keble_agentic_chat-3.45.1.tar.gz
Algorithm Hash digest
SHA256 d51e9ad24dd3f61d11e2a6f0f134e6286366c360ca0bfec64bd2fec4cefbdb94
MD5 868a7abb4c092cb5cc041775959f0295
BLAKE2b-256 9e1fd59967363aa8b0ef59220b47d17c0b33f27c360dbda57d76241131f49919

See more details on using hashes here.

File details

Details for the file keble_agentic_chat-3.45.1-py3-none-any.whl.

File metadata

  • Download URL: keble_agentic_chat-3.45.1-py3-none-any.whl
  • Upload date:
  • Size: 176.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for keble_agentic_chat-3.45.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4446ce9ec57ddd4e27d432e272c9c828dd064906ffa32e76498320d950a5d3e8
MD5 26add69b46e861adccfdc36b82f215d8
BLAKE2b-256 92eec1ba2dc187f833a5a803b7fa94d204f2adde3bcef0ccb8b33a6fef543bfa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page