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

Method set_function_name

camel/toolkits/function_tool.py:509–515  ·  view source on GitHub ↗

r"""Sets the name of the function in the OpenAI tool schema. Args: name (str): The name of the function to set.

(self, name: str)

Source from the content-addressed store, hash-verified

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.
511
512 Args:
513 name (str): The name of the function to set.
514 """
515 self.openai_tool_schema["function"]["name"] = name
516
517 def get_function_description(self) -> str:
518 r"""Gets the description of the function from the OpenAI tool

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected