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

Go to the source code of this file.

Classes

class  oc_chat.core.step_routing.IterationRouting

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.step_routing

Functions

str oc_chat.core.step_routing._message_text (dict message)
bool oc_chat.core.step_routing._known (model_manager, str|None name)
tuple[str, bool, str|None] oc_chat.core.step_routing._pick_model (model_manager, str|None preferred, str session_model)
dict oc_chat.core.step_routing._caps (model_manager, str name)
str|None oc_chat.core.step_routing._effort_for_model (model_manager, str model, str desired)
dict[str, Any]|None oc_chat.core.step_routing._thinking_body (model_manager, str model, str|None effort)
str oc_chat.core.step_routing.classify_tool_batch (list[str] tool_names)
int oc_chat.core.step_routing.scale_max_tokens_for_profile (int base, str token_profile, *, int|None ceiling=None)
int oc_chat.core.step_routing.resolve_output_tokens (Any model_manager, str model, str bucket, str token_profile)
bool oc_chat.core.step_routing.should_use_sub_loop (str task, int iteration_count, list[dict] recent_messages)
list[str] oc_chat.core.step_routing.last_assistant_tool_names (list[dict] messages)
IterationRouting oc_chat.core.step_routing.resolve_iteration_routing (*, str session_model, str session_reasoning_effort, model_manager, int iteration, bool is_finalize_nudge, list[dict] messages, str token_profile="balanced")

Variables

dict oc_chat.core.step_routing._BUCKET_OUTPUT_SHARE
int oc_chat.core.step_routing._MIN_BUCKET_OUTPUT_TOKENS = default("min_bucket_output_tokens")
str oc_chat.core.step_routing._CHEAP_TIER = "cheap"
str oc_chat.core.step_routing._REASONING_TIER = "reasoning"
 oc_chat.core.step_routing.SIMPLE_TOOLS = frozenset({"read_file", "run_command"})
 oc_chat.core.step_routing.SIMPLE_THINKING_TOOLS = frozenset({"list_dir", "search_files"})
 oc_chat.core.step_routing.THINKING_TOOLS