mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 23:41:28 +00:00
community[patch]: docstrings update (#20301)
Added missed docstrings. Format docstings to the consistent form.
This commit is contained in:
@@ -28,7 +28,7 @@ def convert_pydantic_to_ernie_function(
|
||||
name: Optional[str] = None,
|
||||
description: Optional[str] = None,
|
||||
) -> FunctionDescription:
|
||||
"""Converts a Pydantic model to a function description for the Ernie API."""
|
||||
"""Convert a Pydantic model to a function description for the Ernie API."""
|
||||
schema = dereference_refs(model.schema())
|
||||
schema.pop("definitions", None)
|
||||
return {
|
||||
@@ -44,7 +44,7 @@ def convert_pydantic_to_ernie_tool(
|
||||
name: Optional[str] = None,
|
||||
description: Optional[str] = None,
|
||||
) -> ToolDescription:
|
||||
"""Converts a Pydantic model to a function description for the Ernie API."""
|
||||
"""Convert a Pydantic model to a function description for the Ernie API."""
|
||||
function = convert_pydantic_to_ernie_function(
|
||||
model, name=name, description=description
|
||||
)
|
||||
|
Reference in New Issue
Block a user