提供者#

class langchain_community.chat_models.oci_generative_ai.Provider[source]#

属性

stop_sequence_key

方法

abstract chat_generation_info(response: Any) Dict[str, Any][source]#
Parameters:

响应 (任意类型)

Return type:

Dict[str, Any]

abstract chat_response_to_text(response: Any) str[source]#
Parameters:

响应 (任意类型)

Return type:

字符串

abstract chat_stream_generation_info(event_data: Dict) Dict[str, Any][source]#
Parameters:

event_data (字典)

Return type:

Dict[str, Any]

abstract chat_stream_to_text(event_data: Dict) str[source]#
Parameters:

event_data (字典)

Return type:

字符串

abstract convert_to_oci_tool(tool: Dict[str, Any] | Type[BaseModel] | Callable | BaseTool) Dict[str, Any][source]#
Parameters:

工具 (字典[字符串, 任意类型] | 类型[基础模型] | 可调用对象 | 基础工具)

Return type:

Dict[str, Any]

abstract get_role(message: BaseMessage) str[source]#
Parameters:

消息 (BaseMessage)

Return type:

字符串

abstract is_chat_stream_end(event_data: Dict) bool[source]#
Parameters:

event_data (字典)

Return type:

布尔

abstract messages_to_oci_params(messages: Any, **kwargs: Any) Dict[str, Any][source]#
Parameters:
  • messages (任何)

  • kwargs (Any)

Return type:

Dict[str, Any]