Available Actions
openai_ex_chat_completion
Chat completion using OpenAI Ex with support for tool calling
Parameters
The AI model to use (e.g., {:openai, [model: "gpt-4"]} or %Jido.AI.Model{})
type: {:custom, Jido.AI.Model, :validate_model_opts, []}
List of message maps with :role and :content (required if prompt is not provided)
type: {:list, {:map, [role: :atom, content: :string]}}
The prompt to use for the response (required if messages is not provided)
type: {:custom, Jido.AI.Prompt, :validate_prompt_opts, []}
List of Jido.Action modules for function calling
type: {:list, :atom}
Tool choice configuration
type: :map
Temperature for response randomness (0-2)
0.7
type: float
Maximum tokens in response
type: integer
Top p sampling parameter (0-1)
type: float
Frequency penalty (-2.0 to 2.0)
type: float
Presence penalty (-2.0 to 2.0)
type: float
Stop sequences
type: {:list, :string}
Response format (text or json)
:text
type: one of [:text, :json], must be one of: :text, :json
Random number seed for deterministic responses
type: integer
Whether to stream the response
type: boolean