This document outlines features that are present in the Z.ai Python SDK but not yet implemented in the Ruby SDK.
The Python SDK (zai-sdk) v0.2.2 has significantly more APIs than our current Ruby SDK implementation. While our Ruby SDK covers the core APIs, there are several advanced features missing.
- Python:
zai.api_resource.agents- Agent management and interactions - Ruby: Not implemented
- Impact: Advanced agent-based AI workflows unavailable
- Python:
zai.api_resource.assistant- Structured conversation management - Ruby: Not implemented
- Impact: Advanced conversation state management unavailable
- Python:
zai.api_resource.audio- Speech synthesis and transcription - Ruby: Not implemented
- Impact: Voice generation and audio transcription unavailable
- Python:
zai.api_resource.videos- Text-to-video and image-to-video - Ruby: Not implemented
- Impact: Video content generation unavailable
- Python:
zai.api_resource.voice- Voice cloning and synthesis - Ruby: Not implemented
- Impact: Advanced voice customization unavailable
- Python:
zai.api_resource.moderations- Content safety and moderation - Ruby: Not implemented
- Impact: Content filtering and safety checks unavailable
- Python:
zai.api_resource.web_search- Integrated web search - Ruby: Not implemented
- Impact: Real-time web search capabilities unavailable
- Python:
zai.api_resource.web_reader- Web content extraction - Ruby: Not implemented
- Impact: Web page content extraction unavailable
- Python:
zai.api_resource.file_parser- Advanced file parsing - Ruby: Not implemented
- Impact: Complex file format parsing unavailable
- Python:
zai.api_resource.ocr- Handwriting OCR and layout parsing - Ruby: Not implemented
- Impact: Text extraction from images unavailable
- Python:
zai.api_resource.batch- Batch processing operations - Ruby: Not implemented
- Impact: Efficient batch processing unavailable
- Python: Advanced function calling and tool usage in chat
- Ruby: Basic tool support only
- Impact: Complex function calling workflows unavailable
- Python:
charglm-3model support for character-based conversations - Ruby: Not implemented
- Python: Advanced streaming with multiple format support
- Ruby: Basic streaming only
- Python: Support for
glm-4.6v,glm-4.7,cogvideox-3 - Ruby: Limited model support
- Python:
ZaiClientandZhipuAiClientfor different regions - Ruby: Basic region support only
| Feature Category | Python SDK | Ruby SDK | Gap |
|---|---|---|---|
| Core APIs | ✅ Complete | ✅ Complete | None |
| Advanced APIs | ✅ 11 APIs | ❌ 4 APIs | 7 missing |
| Audio/Video | ✅ Complete | ❌ Missing | 100% |
| Web Integration | ✅ Complete | ❌ Missing | 100% |
| AI Agents | ✅ Complete | ❌ Missing | 100% |
| Content Safety | ✅ Complete | ❌ Missing | 100% |
Overall Feature Coverage: 36%
- Assistant API - Core conversation management
- Audio Processing - Speech synthesis and transcription
- Video Generation - Text-to-video capabilities
- Enhanced Tool Calling - Advanced function calling
- Agents API - Agent-based workflows
- Content Moderation - Safety and filtering
- Batch Operations - Efficient processing
- Web Integration - Search and reading
- Voice Cloning - Voice customization
- OCR & File Parsing - Document processing
- Audio Processing: Need Ruby audio libraries (parallel to Python's
librosa) - Video Processing: Need video encoding/decoding libraries
- OCR: Need OCR engines (parallel to Python's
pytesseract) - Web Scraping: Need robust web scraping libraries
- Python: Rich type hints with
pydanticmodels - Ruby: Limited type system, need more validation
- Python: Native async/await support
- Ruby: Limited async capabilities, needs fibers or threads
- Research Ruby equivalents for missing Python dependencies
- Prototype missing APIs starting with highest priority ones
- Add comprehensive tests for new features
- Update documentation to reflect expanded capabilities
- Consider version planning for phased releases
Generated: March 9, 2026
Analysis Based: Z.ai Python SDK v0.2.2 vs Ruby SDK v0.1.0
Total Missing Features: 11 major APIs, 30+ advanced features