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

Go to the source code of this file.

Namespaces

namespace  oc_chat
namespace  oc_chat.core
namespace  oc_chat.core.tool_prompt

Functions

str oc_chat.core.tool_prompt._one_line (str text, int limit)
str oc_chat.core.tool_prompt._escape_cell (str text)
str oc_chat.core.tool_prompt._params (dict[str, Any] fn)
bool oc_chat.core.tool_prompt._is_gated (str name, dict[str, Any] fn)
str oc_chat.core.tool_prompt.compact_tool_map (list[dict[str, Any]] schemas, *, int max_purpose=160, bool confirm_marker=True)

Variables

str oc_chat.core.tool_prompt.COMPACT_TOOL_MAP_SENTINEL = "<!--oc:compact-tool-map:v1-->"
frozenset oc_chat.core.tool_prompt._GATED_TOOLS = frozenset()
 oc_chat.core.tool_prompt._PIPE_RE = re.compile(r"(?<!\\‍)\|")