MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / to_template_tool

Method to_template_tool

examples/server/server.py:2798–2802  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2796 function: ChatCompletionToolFunction
2797
2798 def to_template_tool(self) -> ChatTemplateTool:
2799 return {
2800 "type": self.type,
2801 "function": self.function.to_template_function(),
2802 }
2803
2804
2805class ChatCompletionFunctionCallOption(BaseModel):

Callers 2

create_chat_completionFunction · 0.80

Calls 1

to_template_functionMethod · 0.45

Tested by

no test coverage detected