Available Actions
instructor_chat_completion
Makes a raw chat completion call using Instructor with structured prompting
Parameters
The AI model to use (e.g., {:anthropic, [model: "claude-3-sonnet-20240229"]} or %Jido.AI.Model{})
type: {:custom, Jido.AI.Model, :validate_model_opts, []}
The prompt to use for the response
type: {:custom, Jido.AI.Prompt, :validate_prompt_opts, []}
Ecto schema or type definition for structured response
type: :any
Number of retries for validation failures
0
type: integer
Temperature for response randomness
0.7
type: float
Maximum tokens in response
1000
type: integer
Top p sampling parameter
type: float
Stop sequences
type: {:list, :string}
Request timeout in milliseconds
60000
type: integer
Response mode (:tools, :json, :md_json, or nil for default)
:tools
type: one of [:tools, :json, :md_json], must be one of: :tools, :json, :md_json
Enable streaming responses
type: boolean
Return partial responses while streaming
type: boolean