Skip to content

Conversation

@GabrielVasilescu04
Copy link
Contributor

Description

Initial PR for conversational agents support. Implemented sdk method to get the latest message from a conversation

@GabrielVasilescu04 GabrielVasilescu04 self-assigned this Oct 22, 2025
@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Oct 22, 2025
Copy link

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 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 ConversationsService with methods to retrieve conversations by job key and fetch the latest message
  • Extended conversation models with UiPathConversationModel for 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.

@GabrielVasilescu04 GabrielVasilescu04 force-pushed the feature/initial-support-for-conversational-agents branch 3 times, most recently from 01a6b37 to 78c8a8f Compare October 22, 2025 15:20
@GabrielVasilescu04 GabrielVasilescu04 force-pushed the feature/initial-support-for-conversational-agents branch from 78c8a8f to 0a10c27 Compare October 22, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant