mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 13:23:35 +00:00
[Doc] Improve api doc (#30073)
- Update api_doc for `BaseMessage` - add static method decorator for `retry_runnable`
This commit is contained in:
parent
9a11e0edcd
commit
8575d7491f
@ -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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user