A plugin that analyzes and assesses learning styles using machine learning techniques.
- Real-time learning style assessment
- Adaptive content delivery
- Support for multiple learning style models
- Confidence scoring for predictions
-
Ensure you are using Python 3.10:
python --version
-
Clone this repository into your Cat's plugins folder:
git clone https://github.com/[your_github_account]/learning-style-plugin.git
-
Install dependencies:
pip install -r requirements.txt
-
Initialize the plugin:
cd learning-style-plugin python setup.py
To use the plugin, follow the setup guide and integrate it with your Cheshire Cat instance.
from learning_assessor import assess_learning_style
tool_input = {"length": 120, "complexity": 3}
print(assess_learning_style(tool_input, cat))
from learning_assessor import detect_learning_style
chat_data = {"features": [1, 2]}
print(detect_learning_style(chat_data, cat))
from learning_assessor import explain_learning_style
print(explain_learning_style("Visual", cat))
from learning_assessor import recommend_learning_resources
print(recommend_learning_resources("Visual", cat))
from learning_assessor import get_model_path
print(get_model_path())
from learning_assessor import get_last_learning_update
print(get_last_learning_update())
from learning_assessor import format_learning_style
print(format_learning_style("visual_learning"))
from learning_assessor import generate_learning_prompt
user_data = {"role": "teacher", "learning_style": "visual"}
print(generate_learning_prompt(user_data))
from learning_assessor import get_learning_resource_url
print(get_learning_resource_url("example_resource"))
curl -X GET "http://localhost:1865/settings"
curl -X PUT "http://localhost:1865/settings/{settingId}" \
-H "Content-Type: application/json" \
-d '{"min_confidence": 0.9, "update_frequency": 5}'
curl -X POST "http://localhost:1865/settings" \
-H "Content-Type: application/json" \
-d '{"model_type": "random_forest", "min_confidence": 0.7, "update_frequency": 7}'
curl -X GET "http://localhost:1865/settings/all"
curl -X DELETE "http://localhost:1865/settings/{settingId}"
curl -X GET "http://localhost:1865/learning-style"
curl -X POST "http://localhost:1865/start-assessment"
curl -X GET "http://localhost:1865/next-question"
curl -X POST "http://localhost:1865/submit-answer" \
-H "Content-Type: application/json" \
-d '{"answer": "visual"}'
curl -X POST "http://localhost:1865/finalize-assessment"
- model_type: Machine learning model type (random_forest, neural_network, svm)
- model_confidence_threshold: Minimum confidence for predictions (0.0-1.0)
- model_update_frequency: Days between model updates
- min_questions_required: Minimum questions for valid assessment
- max_questions_per_session: Maximum questions per session
- allow_style_override: Allow manual style overrides
- default_learning_style: Default style (Visual, Auditory, Reading, Kinesthetic)
- enable_content_adaptation: Enable/disable content adaptation
- include_style_hints: Show learning style hints in responses
- adaptation_strength: Strength of content adaptation (0.0-1.0)
- enable_api_endpoints: Enable/disable API endpoints
- require_authentication: Require auth for API calls
- last_model_update: Date of last model update
# Get current settings
curl -X GET "http://localhost:1865/plugin-settings"
# Update settings
curl -X PUT "http://localhost:1865/plugin-settings" \
-H "Content-Type: application/json" \
-d '{
"model_confidence_threshold": 0.8,
"max_questions_per_session": 5
}'