https://github.com/ararog/health_up_worker
A kafka based message consumer which do LLM model interaction with Pydantic.AI
https://github.com/ararog/health_up_worker
agentic-ai ai kafka kafka-consumer llm postgresql pydantic-ai sqlmodel
Last synced: 2 months ago
JSON representation
A kafka based message consumer which do LLM model interaction with Pydantic.AI
- Host: GitHub
- URL: https://github.com/ararog/health_up_worker
- Owner: ararog
- Created: 2025-03-01T16:06:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-29T12:48:39.000Z (about 1 year ago)
- Last Synced: 2025-12-07T04:57:45.055Z (6 months ago)
- Topics: agentic-ai, ai, kafka, kafka-consumer, llm, postgresql, pydantic-ai, sqlmodel
- Language: Python
- Homepage:
- Size: 200 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Health Up Worker
A kafka consumer which receives messages from a Kafka topic, processes the messages,
and sends SMS messages to a specified phone number using the Twilio API.
## License
MIT
## Requirements
Python 3.6
## Installation
### Clone the repository:
```bash
git clone https://github.com/ararog/health_up_worker.git
```
### Update the .env file:
```plaintext
TWILIO_ACCOUNT_SID=
TWILIO_AUTH_TOKEN=
TWILIO_NUMBER=
DB_SERVER=
DB_NAME=
OPENAI_API_KEY=
TO_NUMBER=
```
### Server setup:
1. Create a Twilio account and get your account SID and auth token.
2. Update the .env file with your Twilio account SID, auth token, and twilio phone number, your phone number, and openai api key.
## Starting server
```bash
cd health_up_worker
uv sync
uv run main.py
```
## Testing
Open your whatsapp and send a message to your twilio number.