This module provides an implementation of the OpenAI agent sessions API (beta). The API reference can be found at https://developers.openai.com/api/reference/agents/sessions.
Summary
Functions
Creates a new agent session. Pass stream: true to receive the session's events as a stream.
Creates a new agent session request with the given arguments.
Functions
Creates a new agent session. Pass stream: true to receive the session's events as a stream.
Creates a new agent session request with the given arguments.
Example usage:
iex> OpenaiEx.Beta.Agents.Sessions.new(environment: %{type: "none"}, agent_id: "agent_123", input: "Hello")
%{agent_id: "agent_123", environment: %{type: "none"}, input: "Hello"}