| --- |
| title: AI Agent |
| emoji: 🤖 |
| colorFrom: blue |
| colorTo: purple |
| sdk: docker |
| pinned: false |
| --- |
| |
| # AI Agent |
|
|
| **Deployed by AgentForge** 🚀 |
|
|
| ## About |
|
|
| This is an AI agent for **MathMaster** in the **education** domain. |
|
|
| ## Features |
|
|
| - **Domain**: Education |
| - **Model**: qwen2.5-coder |
| - **Tools**: 1 specialized tools |
|
|
| ### Available Tools |
|
|
| - **web_search**: Perform a deep web search using Tavily and return structured results. |
| |
| |
| ## Usage |
| |
| ### API Endpoint |
| |
| **POST** `/run` |
| |
| ```json |
| { |
| "message": "Your question here", |
| "session_id": "optional-session-id" |
| } |
| ``` |
| |
| ### Example |
| |
| ```bash |
| curl -X POST "https://huggingface.co/spaces/YOUR_USERNAME/agent-education-mathmaster/run" \ |
| -H "Content-Type: application/json" \ |
| -d '{"message": "Hello, how can you help me?"}' |
| ``` |
| |
| ### Response |
| |
| ```json |
| { |
| "status": "success", |
| "agent_name": "AI Agent", |
| "user_message": "Hello, how can you help me?", |
| "agent_response": "...", |
| "tools_available": [...], |
| "timestamp": 1234567890.0 |
| } |
| ``` |
| |
| ## Other Endpoints |
| |
| - `GET /` - Agent info and health check |
| - `GET /config` - Agent configuration |
| - `GET /health` - Health check |
| |
| ## Powered by AgentForge |
| |
| Built with [AgentForge](https://agentforge.ai) - The fastest way to build and deploy AI agents. |
| |