Class: VoiceML::AssistantsV1KnowledgeScope
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1KnowledgeScope
- Defined in:
- lib/voiceml/resources/assistants_v1.rb
Overview
============================================================================ Per-Knowledge scope — sub-resources under /v1/Knowledge/id/...:
- .status fetch ingestion status snapshot
- .chunks list indexed chunks
============================================================================
Instance Attribute Summary collapse
-
#knowledge_id ⇒ Object
readonly
Returns the value of attribute knowledge_id.
Instance Method Summary collapse
- #chunks ⇒ Object
-
#initialize(transport, knowledge_id) ⇒ AssistantsV1KnowledgeScope
constructor
A new instance of AssistantsV1KnowledgeScope.
- #status ⇒ Object
Constructor Details
#initialize(transport, knowledge_id) ⇒ AssistantsV1KnowledgeScope
Returns a new instance of AssistantsV1KnowledgeScope.
400 401 402 403 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 400 def initialize(transport, knowledge_id) @transport = transport @knowledge_id = knowledge_id end |
Instance Attribute Details
#knowledge_id ⇒ Object (readonly)
Returns the value of attribute knowledge_id.
398 399 400 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 398 def knowledge_id @knowledge_id end |
Instance Method Details
#chunks ⇒ Object
409 410 411 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 409 def chunks @chunks ||= AssistantsV1KnowledgeChunksScope.new(@transport, @knowledge_id) end |
#status ⇒ Object
405 406 407 |
# File 'lib/voiceml/resources/assistants_v1.rb', line 405 def status @status ||= AssistantsV1KnowledgeStatusScope.new(@transport, @knowledge_id) end |