Skip to content

Use reply for chatbot examples#59

Merged
pierrevalade merged 2 commits intopierre-readmefrom
pierre-use-reply-for-chatbot-examples
Feb 18, 2025
Merged

Use reply for chatbot examples#59
pierrevalade merged 2 commits intopierre-readmefrom
pierre-use-reply-for-chatbot-examples

Conversation

@pierrevalade
Copy link
Contributor

@guillaq as discussed, this change updates the examples to use reply instead of a list of messages in the schema.

Pierre added 2 commits February 17, 2025 13:48
Simplify the RAG chatbot example (examples/13_rag.py):\n- Remove conversation_history management from ChatInput\n- Remove Role enum and Message base class\n- Simplify AssistantMessage to standalone model\n- Update agent return type (ChatbotOutput instead of Run[ChatbotOutput])\n- Add more comprehensive examples using .reply for conversation flow\n- Keep RAG functionality with search_faq tool unchanged
Break long line into multiple lines in examples/11_ecommerce_chatbot.py to comply with line length limit
@pierrevalade pierrevalade marked this pull request as ready for review February 17, 2025 20:51
@pierrevalade pierrevalade requested a review from guillaq February 17, 2025 20:51
@pierrevalade pierrevalade changed the base branch from main to pierre-readme February 17, 2025 20:52
Copy link
Collaborator

@guillaq guillaq left a comment

Choose a reason for hiding this comment

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

Super clean !

@pierrevalade pierrevalade merged commit edb6e35 into pierre-readme Feb 18, 2025
5 checks passed
@pierrevalade pierrevalade deleted the pierre-use-reply-for-chatbot-examples branch February 18, 2025 16:07
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.

2 participants