[Doc] Improve api doc (#30073)

- Update api_doc for `BaseMessage`
- add static method decorator for `retry_runnable`
This commit is contained in:
ZhangShenao 2025-03-04 22:39:07 +08:00 committed by GitHub
parent 9a11e0edcd
commit 8575d7491f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -145,11 +145,11 @@ def merge_content(
first_content: Union[str, list[Union[str, dict]]],
*contents: Union[str, list[Union[str, dict]]],
) -> Union[str, list[Union[str, dict]]]:
"""Merge two message contents.
"""Merge multiple message contents.
Args:
first_content: The first content. Can be a string or a list.
second_content: The second content. Can be a string or a list.
contents: The other contents. Can be a string or a list.
Returns:
The merged content.

View File

@ -135,8 +135,8 @@ class RunnableRetry(RunnableBindingBase[Input, Output]):
def _async_retrying(self, **kwargs: Any) -> AsyncRetrying:
return AsyncRetrying(**self._kwargs_retrying, **kwargs)
@staticmethod
def _patch_config(
self,
config: RunnableConfig,
run_manager: "T",
retry_state: RetryCallState,