snowflake.core.cortex.chat_service.CortexChatService¶
- class snowflake.core.cortex.chat_service.CortexChatService(root: Root)¶
Bases:
objectRepresents the collection operations of the Snowflake Cortex Chat Service resource.
Methods
- chat(chat_request: ChatRequest) SSEClient¶
Perform chat service, similar to snowflake.cortex.Chat.
- Parameters:
chat_request (ChatRequest) – The chat request object to be sent to the chat service. Defined in ./_generated/models/chat_request.py
- chat_async(chat_request: ChatRequest) PollingOperation[SSEClient]¶
An asynchronous version of
chat().Refer to
PollingOperationfor more information on asynchronous execution and the return type.