oc_chat
Loading...
Searching...
No Matches
context.py File Reference

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.context

Functions

int oc_chat.core.context._estimate_tokens (list[dict[str, Any]] messages)
int oc_chat.core.context._effective_prompt_trigger (session, list messages)
list[list[dict[str, Any]]] oc_chat.core.context._conversation_turns (list[dict[str, Any]] messages)
dict[str, Any] oc_chat.core.context._abbreviate_tool_for_summary (dict[str, Any] m)
list[dict[str, Any]] oc_chat.core.context._abbreviate_turn_for_summary (list[dict[str, Any]] turn)
bool oc_chat.core.context.maybe_compress (ChatSession session, ClientInterface client, Presenter|None presenter=None)