Ruby
AI Examples for Ruby
Getting Started
- List AI Models
- Simple Stateless Query
- Simple Conversation
- Prove Stateful Multi-Turn Conversation
- Full Transcript Mode vs Summarized Mode Conversations
- Diagnosing an Ask Failure
Streaming Responses
- Simple Stateless Streaming Response
- Conversation with Streaming Responses
Multimodal Input and Files
- Multimodal Input: Image URL
- Multimodal Input: Image Data
- Multimodal Input: File URL
- Multimodal Input: File Data
- XLSX Spreadsheet in AI Query
- Upload a File to an AI Provider (OpenAI, Google, Antropic, X)
- Referencing a Pre-Uploaded File by file_id in an AI Request
- Upload an Image File to an AI Provider (OpenAI, Google, Antropic, X)
- Referencing a Pre-Uploaded Image File by file_id in an AI Request
Tool Function Calling
- Automatic JavaScript AI Tool Function Calling
- Manual Tool Function Calls
- Automatic JavaScript AI Tool Returning an Object
- Automatic JavaScript AI Tool Returning an Array
- Automatic JavaScript AI Tool Returning a Number
- Automatic JS AI Tool Calling with Supporting JS Sources
- Automatic JS AI Tool Function Calling using Chilkat within the JavaScript
- AI Ask with Multiple Tool Function Callbacks
- Streaming AI with Automatic JavaScript AI Tool Function Calling
- Streaming AI with Manual AI Tool Function Calling
Image Generation
- Simple AI Image Generation
- AI Modify Existing Image with Text Prompt
Azure AI Foundry
- Azure AI Foundry Query
- Azure AI Foundry List Models