Gleanex.Platform.Chat (Gleanex v0.1.0)

Copy Markdown View Source

Provides API endpoint related to chat

Summary

Functions

Create a chat response

Functions

create(body, opts \\ [])

@spec create(body :: Gleanex.Platform.ChatCreateRequest.t(), opts :: keyword()) ::
  {:ok, Gleanex.Platform.ChatCompletedResponse.t() | String.t()}
  | {:error, Gleanex.Error.t()}

Create a chat response

Run an assistant turn. Set stream to true to receive server-sent events; otherwise the response is a typed JSON response object.

Request Body

Content Types: application/json