0.1.7-chomp.2 • Published 1 year ago
plugin-chomp-marvin v0.1.7-chomp.2
Chomp Plugin
Overview
This plugin provides functionality for managing and interacting with Chomp game questions. It enables the creation, retrieval, and management of coding challenge questions.
Features
Actions
findQuestion
Searches and retrieves questions based on criteria like difficulty, topic, or keywords.
import { findQuestion } from "@elizaos/plugin-chomp";
// Example usage through Eliza runtime
const result = await findQuestion.handler(runtime, {
input: "find a beginner JavaScript question",
entities: [],
intent: "find_question",
});createQuestion
Creates new coding challenge questions with specified parameters.
import { createQuestion } from "@elizaos/plugin-chomp";
// Example usage through Eliza runtime
const result = await createQuestion.handler(runtime, {
input: "create a question about array manipulation",
entities: [],
intent: "create_question",
});Adding a new action
Reuse providers and utilities from the existing actions where possible. Add more utilities if you think they will be useful for other actions.
- Add the action to the
actionsdirectory. Try to follow the naming convention of the other actions. - Export the action in the
index.tsfile.
Example Workflow
import { chompPlugin } from "@elizaos/plugin-chomp";
// Register the plugin with Eliza
eliza.use(chompPlugin);
// The plugin will now handle intents related to:
// - Finding coding questions
// - Creating new questions
// - Managing question metadataConfiguration
No additional configuration is required. The plugin uses the core Eliza runtime environment.
TODO:
- Add question validation
- Implement difficulty scoring
- Add category management
- Support multiple programming languages
License
MIT
0.1.7-chomp.2
1 year ago