POST /adaption/train
Trigger LoRA training for a memory group. This endpoint can be called automatically when the training threshold is met, or manually by the user.
Adaption is currently in Beta and may not be stable. Users may also encounter slower outputs due to vLLM cold-start times.
Authentication
Bearer token with your API key. Format: Bearer YOUR_ASYMMETRIC_API_KEY
Request Body
The memory group to train on
Name for the LoRA adapter
Force override stale training locks
Response
Training status: training_started, already_training, or no_data
Number of memories used for training
Example
import requests
response = requests.post(
"https://rkdune--symmetry.modal.run/adaption/train",
headers={"Authorization": "Bearer YOUR_ASYMMETRIC_API_KEY"},
json={
"memory_group": "darwin_agent",
"lora_name": "darwin_adapter",
"force": True
}
)
data = response.json()
print(f"Status: {data['status']}")
print(f"Job ID: {data.get('job_id')}")
Errors
| Status | Description |
|---|
| 400 | memory_group and lora_name are required |
| 401 | Invalid API key |
| 500 | Training failed |