MCPcopy Create free account
hub / github.com/Paper2Poster/Paper2Poster / get_function_name

Method get_function_name

camel/toolkits/function_tool.py:500–507  ·  view source on GitHub ↗

r"""Gets the name of the function from the OpenAI tool schema. Returns: str: The name of the function.

(self)

Source from the content-addressed store, hash-verified

498 self.openai_tool_schema["function"] = openai_function_schema
499
500 def get_function_name(self) -> str:
501 r"""Gets the name of the function from the OpenAI tool schema.
502
503 Returns:
504 str: The name of the function.
505 """
506 self.validate_openai_tool_schema(self.openai_tool_schema)
507 return self.openai_tool_schema["function"]["name"]
508
509 def set_function_name(self, name: str) -> None:
510 r"""Sets the name of the function in the OpenAI tool schema.

Callers 12

wrapperMethod · 0.45
addMethod · 0.45
wrapperMethod · 0.45
addMethod · 0.45
__init__Method · 0.45
wrapperMethod · 0.45
addMethod · 0.45
__init__Method · 0.45
add_toolMethod · 0.45
remove_toolMethod · 0.45
list_toolsMethod · 0.45

Calls 1

Tested by

no test coverage detected