Skip to content

pydantic-ai demos#303

Open
itayd wants to merge 30 commits intomainfrom
itay/pydantic
Open

pydantic-ai demos#303
itayd wants to merge 30 commits intomainfrom
itay/pydantic

Conversation

@itayd
Copy link
Member

@itayd itayd commented Dec 10, 2025

No description provided.

Copilot AI review requested due to automatic review settings December 10, 2025 00:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 !ask command for one-time AI queries responding in Slack threads
  • Implements !chat command 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.

Copy link
Contributor

@haimzlato haimzlato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@itayd
Copy link
Member Author

itayd commented Dec 12, 2025

Nice. But there are holes: e.g. how does the user stop the "Gamble" session.

No way to end it. I can add a timeout. But this is just for a demo, so not sure if worth it.

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?

Two threads are two different sessions. No issues.

How about we do a post about: build internal chatbot with few lines of code: AK+Slack+Pydantic AI

Yes - I want to make some chat abstraction to make it easier.

@itayd itayd changed the title DRAFT: pydantic-ai demos pydantic-ai demos Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants