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
4 changes: 2 additions & 2 deletions examples/integrations/litellm/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def _persist_session_checkpoint_if_needed(
) -> None:
if session_key is None:
return
if kind not in {"update", "clarify"}:
if kind not in {DECISION_UPDATE, DECISION_CLARIFY}:
return
_CHECKPOINTS_BY_SESSION_KEY[session_key] = engine.export_checkpoint_json()

Expand Down Expand Up @@ -305,7 +305,7 @@ def handle_turn(user_input: str, engine: Engine, *, session_key: str | None = No
near_miss_prompt,
original_input=user_input,
compiler_input=user_input,
decision={"kind": "clarify", "prompt_to_user": near_miss_prompt},
decision={"kind": DECISION_CLARIFY, "prompt_to_user": near_miss_prompt},
state_before=state_before,
state_after=engine.state,
llm_called=False,
Expand Down
4 changes: 2 additions & 2 deletions examples/integrations/litellm/with_preprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def _persist_session_checkpoint_if_needed(
) -> None:
if session_key is None:
return
if kind not in {"update", "clarify"}:
if kind not in {DECISION_UPDATE, DECISION_CLARIFY}:
return
_CHECKPOINTS_BY_SESSION_KEY[session_key] = engine.export_checkpoint_json()

Expand Down Expand Up @@ -430,7 +430,7 @@ def handle_turn(user_input: str, engine: Engine, *, session_key: str | None = No
original_input=user_input,
compiler_input=compile_input,
preprocessor_output=preprocessd,
decision={"kind": "clarify", "prompt_to_user": near_miss_prompt},
decision={"kind": DECISION_CLARIFY, "prompt_to_user": near_miss_prompt},
state_before=state_before,
state_after=engine.state,
llm_called=False,
Expand Down
4 changes: 2 additions & 2 deletions examples/integrations/openwebui/open_webui_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
author: rlippmann
author_url: https://github.com/rlippmann/context-compiler
funding_url: https://github.com/rlippmann/context-compiler
version: 0.9.2
version: 0.9.3
requirements: context-compiler>=0.7.4

Minimal Open WebUI Pipe integration for Context Compiler.
Expand Down Expand Up @@ -643,7 +643,7 @@ async def pipe(
near_miss_prompt,
original_input=latest_user_text,
compiler_input=latest_user_text,
decision={"kind": "clarify", "prompt_to_user": near_miss_prompt},
decision={"kind": DECISION_CLARIFY, "prompt_to_user": near_miss_prompt},
state_before=state_before,
state_after=state_after,
llm_called=False,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
author: rlippmann
author_url: https://github.com/rlippmann/context-compiler
funding_url: https://github.com/rlippmann/context-compiler
version: 0.9.2
version: 0.9.3
requirements: context-compiler[experimental]>=0.7.4

Open WebUI integration with Context Compiler preprocessor.
Expand Down Expand Up @@ -922,7 +922,7 @@ async def pipe(
near_miss_prompt,
original_input=latest_user_text,
compiler_input=compile_input,
decision={"kind": "clarify", "prompt_to_user": near_miss_prompt},
decision={"kind": DECISION_CLARIFY, "prompt_to_user": near_miss_prompt},
state_before=state_before,
state_after=state_after,
preprocessor_output=preprocessd,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "context-compiler"
version = "0.7.4"
version = "0.7.5"
description = "Deterministic conversational state engine for LLM applications."
readme = "README.md"
requires-python = ">=3.11"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading