Skip to content

feat: Kaapi Agentic Chatbot Flow - #1273

Open
Ayush8923 wants to merge 7 commits into
mainfrom
feat/kaapi-chatbot-flow
Open

Ayush8923 wants to merge 7 commits into
mainfrom
feat/kaapi-chatbot-flow

Conversation

@Ayush8923

@Ayush8923 Ayush8923 commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

Issue

Closes #1230

Summary

  • Added POST /chatbot/message, stateless chatbot endpoint; caller sends full message history each turn, gets back the updated transcript
  • Built ChatbotEngine using LangGraph + LangChain (ChatAnthropic), single-node graph handles one conversation turn
  • Added token-based history summarization: when history exceeds the token budget, older turns are compressed into a summary note before the model call
  • Wired chatbot model settings to existing Kaapi config system (config_id + optional config_version) so model, max tokens, and reasoning effort come from saved configs
  • Added langchain-anthropic dependency
  • Added two Alembic seed migrations (086, 087) for Anthropic text model configs
  • Added wiki docs for the chatbot module

Checklist

Before submitting a pull request, please ensure that you mark these task.

  • Ran fastapi run --reload app/main.py or docker compose up in the repository root and test.
  • If you've fixed a bug or added code that is tested and has test cases.

@Ayush8923 Ayush8923 self-assigned this Oct 19, 2026
@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1
  • ready-for-review

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: ProjectTech4DevAI/kaapi-backend/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ae5613f7-a146-4038-a689-c5c49f77cb67

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Ayush8923
Ayush8923 added this pull request to stack #1277 October 20, 2026 06:41
@github-actions

Copy link
Copy Markdown

OpenAPI changes   🟢 1 non-breaking change

Tip

Safe to merge from an API-contract perspective.

Full changelog  ·  1
Method Path Change
🟢 POST /api/v1/chatbot/message endpoint added

main ↔ 2527441e · generated by oasdiff

@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chatbot Engine: Dynamic, configurable conversations

1 participant