langchain_community.chat_models.oci_generative_ai
.Provider¶
- class langchain_community.chat_models.oci_generative_ai.Provider[source]¶
属性
stop_sequence_key
方法
__init__
()chat_generation_info
(response)chat_response_to_text
(response)chat_stream_generation_info
(event_data)chat_stream_to_text
(event_data)convert_to_oci_tool
(tool)get_role
(message)is_chat_stream_end
(event_data)messages_to_oci_params
(messages, **kwargs)- __init__()¶
- 抽象chat_stream_generation_info(event_data: Dict) Dict[str, Any] [来源]¶
- 参数
event_data (Dict) –
- 返回类型
Dict[str, Any]
- 抽象 convert_to_oci_tool(tool: Union[Dict[str, Any], Type[BaseModel], Callable, BaseTool]) Dict[str, Any] [源代码]¶
- 参数
tool (Union[Dict[str, Any], Type[BaseModel], Callable, BaseTool]) –
- 返回类型
Dict[str, Any]
- 抽象 get_role(message: BaseMessage) str [源代码]¶
- 参数
message (BaseMessage) –
- 返回类型
str