Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds two new demo projects showcasing pydantic-ai integration with AutoKitteh's Slack bot framework. The demos illustrate different patterns: a simple single-shot Q&A (ask) and a stateful threaded conversation with message history (chat).
Key changes:
- Introduces pydantic-ai library for AI agent functionality using Anthropic's Claude models
- Implements
!askcommand for one-time AI queries responding in Slack threads - Implements
!chatcommand for ongoing threaded conversations with message history
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| pydantic/ask/requirements.txt | Adds pydantic-ai dependency for the ask demo |
| pydantic/ask/handlers.py | Implements single-shot Q&A handler triggered by !ask command |
| pydantic/ask/autokitteh.yaml | Configures ask project with Slack integration and message trigger |
| pydantic/ask/Makefile | Adds standard linting, formatting, and deployment tooling |
| pydantic/chat/requirements.txt | Adds pydantic-ai dependency for the chat demo |
| pydantic/chat/handlers.py | Implements conversational handler with message history using subscription pattern |
| pydantic/chat/autokitteh.yaml | Configures chat project as durable trigger for long-running conversations |
| pydantic/chat/Makefile | Adds standard linting, formatting, and deployment tooling |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
haimzlato
left a comment
There was a problem hiding this comment.
Nice.
But there are holes:
e.g. how does the user stop the "Gamble" session. What happens in can of in the same session two gampble sessions started? It's a nice basic PoC but not something a use can compy and change, right?
How about we do a post about: build internal chatbot with few lines of code: AK+Slack+Pydantic AI
No way to end it. I can add a timeout. But this is just for a demo, so not sure if worth it.
Two threads are two different sessions. No issues.
Yes - I want to make some chat abstraction to make it easier. |
No description provided.