{"id":30800704,"url":"https://github.com/kimtth/agent-data-analyst-stream-chainlit","last_synced_at":"2026-06-09T16:31:23.866Z","repository":{"id":313166728,"uuid":"1050213489","full_name":"kimtth/agent-data-analyst-stream-chainlit","owner":"kimtth","description":"⚡️Chainlit-based Data Analyst Chat Agent (Responses API, Server Sent Events) 📈","archived":false,"fork":false,"pushed_at":"2025-10-04T14:31:42.000Z","size":2510,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T16:22:49.556Z","etag":null,"topics":["agent","azure-openai","chainlit","code-interpreter","data-analysis","server-sent-events","stream-response"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kimtth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-04T05:41:43.000Z","updated_at":"2025-10-04T14:31:46.000Z","dependencies_parsed_at":"2025-09-04T10:31:23.557Z","dependency_job_id":"bde526c8-9948-4a30-806d-c03593df1d93","html_url":"https://github.com/kimtth/agent-data-analyst-stream-chainlit","commit_stats":null,"previous_names":["kimtth/agent-data-analyst-stream-chainlit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kimtth/agent-data-analyst-stream-chainlit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fagent-data-analyst-stream-chainlit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fagent-data-analyst-stream-chainlit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fagent-data-analyst-stream-chainlit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fagent-data-analyst-stream-chainlit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kimtth","download_url":"https://codeload.github.com/kimtth/agent-data-analyst-stream-chainlit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kimtth%2Fagent-data-analyst-stream-chainlit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34116456,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","azure-openai","chainlit","code-interpreter","data-analysis","server-sent-events","stream-response"],"created_at":"2025-09-05T20:12:33.556Z","updated_at":"2026-06-09T16:31:23.831Z","avatar_url":"https://github.com/kimtth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📊 Data Analyst Agent ⚡️\n\nA small Chainlit-based data analyst chat agent that answers questions about a synthetic business dataset, runs pandas / matplotlib code when needed, and returns outputs (stream) and inline PNG plots. \n\n\u003cimg src=\"./data/demo.gif\" width=\"430\"\u003e\n\n## OpenAI Code Interpreter\n\n- Released in **March 2023** (alpha for ChatGPT Plus).\n- Integrated with **Assistant API**.\n- **Assistant API** will be deprecated in 2026 ⚠️; use **Responses API** instead.\n- **Responses API** creates an isolated container to execute Python code, with outputs such as images stored within the container.\n- **Open-source alternatives** (e.g., Open Interpreter) are not actively developed; using **Responses API** is recommended. Integration with **Chainlit** has issues:\n  1. [Open Interpreter](https://github.com/OpenInterpreter/open-interpreter) (v0.4.3) sometimes fails to install with Chainlit (v2.7.2) due to dependency collisions.\n  2. [Code Interpreter API](https://github.com/shroominic/codeinterpreter-api) (v0.1.20) has issues with Azure OpenAI.\n\n## Synthetic data description\n\n- **synthetic\\_business\\_data.csv**\n\n  - Synthetic, tabular business / transaction data for demo and analysis.\n\n- **synthetic\\_metadata.json**\n\n  - JSON object describing columns and their human-readable descriptions.\n\n## Usage\n\n1. Create a `.env` with required Azure variables:\n   - `AZURE_OPENAI_ENDPOINT`\n   - `AZURE_OPENAI_DEPLOYMENT_NAME`\n   - `AZURE_OPENAI_API_KEY`\n   - `AZURE_OPENAI_API_VERSION`\n2. Install dependencies:\n   - `poetry install`\n3. Run the app:\n   - `python app.py`\n4. In the chat, ask questions about the dataset. The assistant will run code for calculations/plots and return results.\n\n## Notes\n\n- Tool execution writes a Python script, runs it, and returns stdout/stderr plus any generated PNGs inline.\n- File uploads are disabled in the chat flow.\n- `app.legacy.py` is present in the repo but is considered legacy / not used by the code.\n- If you plan to deploy or extend for Azure, follow Azure best practices, secure `.env` secrets 🔐, and review deployment guidance.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimtth%2Fagent-data-analyst-stream-chainlit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkimtth%2Fagent-data-analyst-stream-chainlit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkimtth%2Fagent-data-analyst-stream-chainlit/lists"}