updated the create_api_rst.py

This commit is contained in:
leo-gan
2023-10-22 17:02:21 -07:00
parent 1afdb40b48
commit 03efe76585

View File

@@ -88,7 +88,12 @@ def _load_module_members(module_path: str, namespace: str) -> ModuleMembers:
is_public=not name.startswith("_"),
)
)
elif inspect.isfunction(type_):
elif inspect.isfunction(type_) and name != "create_conversational_retrieval_agent":
"""TODO: find a better solution.
'agents.agent_toolkits.conversational_retrieval.openai_functions
.create_conversational_retrieval_agent' is a too long name.
It makes the 'agents/functions' table inside API Reference unreadable.
This is a temporary solution to hide this function from API Reference."""
functions.append(
FunctionInfo(
name=name,