Skip to content

Commit 0844762

Browse files
committed
Add TITAN agent server project with comprehensive guides
This commit adds the complete TITAN project structure: - FastAPI server with Telegram bot integration - Pydantic AI agent with deferred tools (ask_user) - Complete deployment-ready setup (Railway/Fly.io) - Comprehensive documentation in Spanish for beginners - 8 detailed explanation guides covering all concepts Project structure: - server.py: FastAPI server with webhook handling - agent.py: Pydantic AI agent configuration - tools.py: Custom tools implementation (ask_user with Futures) - requirements.txt: All Python dependencies - Procfile: Deployment configuration - README.md: Complete setup and usage guide - explicaciones/: 8 beginner-friendly guides explaining every concept The project demonstrates advanced Pydantic AI features including: - Deferred tools with async/await and Futures - Multi-turn conversations with user interaction - Background task processing - Telegram webhook integration - Production-ready deployment setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent c4c9e77 commit 0844762

17 files changed

+4770
-0
lines changed

Titan/.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# API Keys
2+
ANTHROPIC_API_KEY=tu-api-key-de-claude
3+
TELEGRAM_BOT_TOKEN=tu-token-de-telegram
4+
5+
# Supabase (opcional)
6+
SUPABASE_URL=tu-url-de-supabase
7+
SUPABASE_KEY=tu-key-de-supabase
8+
9+
# Puerto (opcional)
10+
PORT=8000

Titan/.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Python
2+
venv/
3+
__pycache__/
4+
*.pyc
5+
*.pyo
6+
*.pyd
7+
.Python
8+
*.so
9+
10+
# Environment variables
11+
.env
12+
13+
# IDE
14+
.vscode/
15+
.idea/
16+
*.swp
17+
*.swo
18+
19+
# OS
20+
.DS_Store
21+
Thumbs.db
22+
23+
# Logs
24+
*.log
25+
26+
# Testing
27+
.pytest_cache/
28+
.coverage
29+
htmlcov/
30+
31+
# Distribution
32+
dist/
33+
build/
34+
*.egg-info/

Titan/Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: python server.py

0 commit comments

Comments
 (0)