Skip to content

Update README.md#53

Merged
guillaq merged 11 commits intomainfrom
pierre-readme
Feb 18, 2025
Merged

Update README.md#53
guillaq merged 11 commits intomainfrom
pierre-readme

Conversation

@pierrevalade
Copy link
Contributor

I'll open as a draft PR to ask questions.

@pierrevalade pierrevalade marked this pull request as ready for review February 14, 2025 01:11
@pierrevalade pierrevalade requested a review from guillaq February 14, 2025 01:11
Pierre and others added 4 commits February 14, 2025 08:30
Fix in examples/01_basic_agent.py:\n- Replace incorrect runCityInput(city="Tokyo")) call\n- Use correct run(CityInput(city="Tokyo")) method\n- Remove extra closing parenthesis
@pierrevalade
Copy link
Contributor Author

@guillaq ready for another review, thanks!

Pierre added 3 commits February 17, 2025 11:47
Add example #15 demonstrating PII extraction and redaction with: - 10 PII categories (NAME, EMAIL, PHONE, etc.) - Structured output with redacted text and extracted PII details - Position tracking for each PII instance - Comprehensive examples covering basic and complex PII scenarios
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
guillaq
guillaq previously approved these changes Feb 18, 2025
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.

You prefer calling .run than the agent function directly ?

feat(examples): add PII extraction example
Copy link
Contributor Author

yes, i think .run is clearer — and makes a clear difference with .stream

Copy link
Contributor Author

what do you think?

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.

Yeah I think that if you need the full run object then .run is clearer.

@guillaq guillaq merged commit 7706571 into main Feb 18, 2025
5 checks passed
@guillaq guillaq deleted the pierre-readme branch February 18, 2025 17:52
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