Class: VoiceML::AssistantsV1KnowledgeChunksScope
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1KnowledgeChunksScope
- Defined in:
- lib/voiceml/resources/assistants_v1.rb
Overview
/v1/Knowledge/id/Chunks — paged list of indexed chunks.
Instance Method Summary collapse
-
#initialize(transport, knowledge_id) ⇒ AssistantsV1KnowledgeChunksScope
constructor
A new instance of AssistantsV1KnowledgeChunksScope.
- #list(page_size: nil) ⇒ Object
Constructor Details
#initialize(transport, knowledge_id) ⇒ AssistantsV1KnowledgeChunksScope
Returns a new instance of AssistantsV1KnowledgeChunksScope.
430 431 432 433 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 430 def initialize(transport, knowledge_id) @transport = transport @knowledge_id = knowledge_id end |
Instance Method Details
#list(page_size: nil) ⇒ Object
435 436 437 438 439 440 441 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 435 def list(page_size: nil) params = {} params['PageSize'] = page_size unless page_size.nil? AssistantsV1KnowledgeChunkList.new( @transport.request(:get, "/v1/Knowledge/#{@knowledge_id}/Chunks", params: params) ) end |