-
Notifications
You must be signed in to change notification settings - Fork 16
feat: initial support for conversational agents #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: initial support for conversational agents #759
Conversation
There was a problem hiding this 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 introduces initial support for conversational agents by implementing SDK methods to retrieve the latest message from a conversation. The implementation includes models for conversations and exchanges, along with a service layer to interact with the conversation API.
Key Changes:
- Added generic paginated response model (
GetResponse) for handling API responses - Implemented
ConversationsServicewith methods to retrieve conversations by job key and fetch the latest message - Extended conversation models with
UiPathConversationModelfor job key to conversation ID mapping
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
src/uipath/agent/conversation/api_responses.py |
New generic paginated response model for GET requests |
src/uipath/agent/conversation/conversation.py |
Added conversation model and response type for mapping job keys to conversation IDs |
src/uipath/agent/conversation/exchange.py |
Added exchange response type for paginated exchange queries |
src/uipath/agent/conversation/citation.py |
Added optional number field to citation source model |
src/uipath/agent/conversation/__init__.py |
Exported new response types for public API |
src/uipath/_services/conversations_service.py |
New service implementing conversation and message retrieval logic |
src/uipath/_services/__init__.py |
Exported new conversations service |
src/uipath/_uipath.py |
Added conversational property to expose the service |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
01a6b37 to
78c8a8f
Compare
78c8a8f to
0a10c27
Compare
Description
Initial PR for conversational agents support. Implemented sdk method to get the latest message from a conversation