What are Models?
Models in Atomemo plugins are:- AI model definitions (LLMs, embeddings, vision, etc.)
- Provider and model information for routing
- Capability specifications (input/output modalities)
- Configuration for parameters and constraints
Basic Model Definition
Model Structure
Required Fields
| Field | Type | Description |
|---|---|---|
name | string | Unique identifier (format: provider/model-name) |
display_name | Record<Locale, string> | Human-readable name |
description | Record<Locale, string> | Model capabilities and use cases |
icon | string | Visual identifier (emoji/icon) |
model_type | ModelType | Type of model (see below) |
input_modalities | Modality[] | Supported input types |
output_modalities | Modality[] | Supported output types |
unsupported_parameters | string[] | Parameters this model doesn’t support |
Optional Fields
| Field | Type | Description |
|---|---|---|
credentials | string[] | Required credential names |
max_tokens | number | Maximum token limit |
context_window | number | Context window size |
pricing | Pricing | Cost information |
capabilities | string[] | Special capabilities (e.g., “function-calling”) |
Model Types
Atomemo supports various model types:Language Model (LLM)
Embedding Model
Vision Model
Speech-to-Text Model
Text-to-Speech Model
Input/Output Modalities
Specify what types of data the model accepts and produces:Supported Modalities
"text"- Text input/output"image"- Image input/output"audio"- Audio input/output"video"- Video input/output"embedding"- Vector embeddings
Multi-Modal Examples
Unsupported Parameters
Specify parameters that don’t apply to your model:temperature- Randomness controltop_p- Nucleus samplingtop_k- Top-k samplingfrequency_penalty- Repetition reductionpresence_penalty- Topic diversitymax_tokens- Output length limitstop- Stop sequences
Model Naming Convention
Follow theprovider/model-name format:
Real-World Examples
Example 1: GPT-4 with Function Calling
Example 2: Local LLM
Example 3: Specialized Embedding Model
Example 4: Image Generation Model
Example 5: Multi-Modal Model
Model Invocation
While model definitions don’t have aninvoke function like tools, they’re used by tools that call model APIs:
Best Practices
Use accurate capability descriptions
Use accurate capability descriptions
Specify token limits accurately
Specify token limits accurately
List all unsupported parameters
List all unsupported parameters
Include pricing when available
Include pricing when available
Use semantic versioning in model names
Use semantic versioning in model names
Model Registration
Models are registered similarly to other features:- Validates model definitions with Zod
- Registers them in the internal registry
- Serializes them for transmission to Hub Server
- Excludes function properties from serialization
Next Steps
Debug Mode
Test your model definitions
Model API Reference
Complete model definition reference