Conversation API
All URIs are relative to http://localhost:1000
Method | HTTP request | Description |
---|---|---|
conversationAssociateAnchor | POST /conversation/{conversation}/anchors/associate/{anchor} | /conversation/{conversation}/anchors/associate/{anchor} [POST] |
conversationAssociateAsset | POST /conversation/{conversation}/assets/associate/{asset} | /conversation/{conversation}/assets/associate/{asset} [POST] |
conversationAssociateGroundingTemporalRangeWorkstream | POST /conversation/{conversation}/grounding/temporal_range/workstreams/associate/{range} | /conversation/{conversation}/grounding/temporal/ranges/associate/{range} [POST] |
conversationAssociateWebsite | POST /conversation/{conversation}/websites/associate/{website} | /conversation/{conversation}/websites/associate/{website} [POST] |
conversationAssociateWorkstreamSummary | POST /conversation/{conversation}/workstream_summaries/associate/{workstream_summary} | /conversation/{conversation}/workstream_summaries/associate/{workstream_summary} [POST] |
conversationDisassociateAnchor | POST /conversation/{conversation}/anchors/delete/{anchor} | /conversation/{conversation}/anchors/delete/{anchor} [POST] |
conversationDisassociateAsset | POST /conversation/{conversation}/assets/delete/{asset} | /conversation/{conversation}/assets/delete/{asset} [POST] |
conversationDisassociateGroundingTemporalRangeWorkstream | POST /conversation/{conversation}/grounding/temporal_range/workstreams/disassociate/{range} | /conversation/{conversation}/grounding/temporal_range/workstreams/disassociate/{range} [POST] |
conversationDisassociateWebsite | POST /conversation/{conversation}/websites/disassociate/{website} | /website/{website}/websites/disassociate/{website} [POST] |
conversationDisassociateWorkstreamSummary | POST /conversation/{conversation}/workstream_summaries/disassociate/{workstream_summary} | /conversation/{conversation}/workstream_summaries/disassociate/{workstream_summary} [POST] |
conversationGetSpecificConversation | GET /conversation/{conversation} | /conversation/{conversation} [GET] |
conversationGroundingMessagesAssociateMessage | POST /conversation/{conversation}/grounding/messages/associate/{message} | /conversation/{conversation}/grounding/messages/associate/{message} [POST] |
conversationGroundingMessagesDisassociateMessage | POST /conversation/{conversation}/grounding/messages/disassociate/{message} | /conversation/{conversation}/grounding/messages/disassociate/{message} [POST] |
conversationScoresIncrement | POST /conversation/{conversation}/scores/increment | /conversation/{conversation}/scores/increment [POST] |
conversationSpecificConversationMessages | GET /conversation/{conversation}/messages | /conversation/{conversation}/messages [GET] |
conversationSpecificConversationRename | POST /conversation/{conversation}/rename | /conversation/{conversation}/rename [POST] |
conversationSummarize | POST /conversation/{conversation}/summarize | /conversation/{conversation}/summarize [POST] |
conversationUpdate | POST /conversation/update | /conversation/update [POST] |
conversationAssociateAnchor
conversationAssociateAnchor(conversation, anchor)
/conversation/{conversation}/anchors/associate/{anchor} [POST]
Updates both the anchor and the conversation, associating them together.
Example
// Import classes:
//import app.pieces.pieces-os-client.infrastructure.*
//import app.pieces.pieces-os-client.models.*
val apiInstance = ConversationApi()
val conversation : kotlin.String = conversation_example // kotlin.String | This is the uuid of a conversation.
val anchor : kotlin.String = anchor_example // kotlin.String | This is the specific uuid of an anchor.
try {
apiInstance.conversationAssociateAnchor(conversation, anchor)
} catch (e: ClientException) {
println("4xx response calling ConversationApi#conversationAssociateAnchor")
e.printStackTrace()
} catch (e: ServerException) {
println("5xx response calling ConversationApi#conversationAssociateAnchor")
e.printStackTrace()
}