Zoonk.AI.AIClient.OpenAIClient (Zoonk v0.1.0-dev)

View Source

OpenAI service implementation for generating AI responses.

This module handles communication with the OpenAI API using the Responses endpoint, supporting structured outputs with JSON schema.

Summary

Functions

Generate an object.

Functions

generate_object(payload)

Generate an object.

Creates a structured object using the OpenAI API.

Examples

iex> OpenAIClient.generate_object(%AIPayload{})
{:ok, %Req.Response{}}