MCPcopy Create free account
hub / github.com/OpenBMB/ToolBench / register_conv_template

Function register_conv_template

toolbench/tool_conversation.py:193–197  ·  view source on GitHub ↗

Register a new conversation template.

(template: Conversation, override: bool = False)

Source from the content-addressed store, hash-verified

191
192
193def register_conv_template(template: Conversation, override: bool = False):
194 """Register a new conversation template."""
195 if not override:
196 assert template.name not in conv_templates, f"{name} has been registered."
197 conv_templates[template.name] = template
198
199
200def get_conv_template(name: str) -> Conversation:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected