Coverage for sources/librovore/__/doctab.py: 100%
4 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-02 00:02 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-02 00:02 +0000
1# vim: set filetype=python fileencoding=utf-8:
2# -*- coding: utf-8 -*-
4#============================================================================#
5# #
6# Licensed under the Apache License, Version 2.0 (the "License"); #
7# you may not use this file except in compliance with the License. #
8# You may obtain a copy of the License at #
9# #
10# http://www.apache.org/licenses/LICENSE-2.0 #
11# #
12# Unless required by applicable law or agreed to in writing, software #
13# distributed under the License is distributed on an "AS IS" BASIS, #
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
15# See the License for the specific language governing permissions and #
16# limitations under the License. #
17# #
18#============================================================================#
21''' Docstrings table for reuse across entities. '''
24from . import imports as __
27def access_doctab( name: str ) -> str:
28 ''' Returns cleaned string corresponding to fragment. '''
29 return __.inspect.cleandoc( fragments[ name ] )
32fragments: __.cabc.Mapping[ str, str ] = __.types.MappingProxyType( {
34 # Arguments
36 'group by argument':
37 ''' Field to group results by (e.g., 'domain', 'role', 'priority'). ''',
39 'include snippets argument':
40 ''' Include content snippets in results. ''',
42 'term argument':
43 ''' Search term for documentation content. ''',
45 'query details argument':
46 ''' Detail level for inventory results.
48 One of: Name, Signature, Summary, Documentation
49 ''',
51 'results max argument':
52 ''' Maximum number of results to return. ''',
54 'server port argument':
55 ''' TCP port for server. ''',
57 'location argument':
58 ''' URL or file path to documentation location. ''',
60 'term filter argument':
61 ''' Filter objects by name containing this text. ''',
63 'transport argument':
64 ''' Transport: stdio or sse. ''',
66 # Returns
68 'content query return':
69 ''' Documentation content search results with relevance ranking.
70 Contains documents with signatures, descriptions, content snippets,
71 relevance scores, and match reasons.
72 ''',
74 'inventory query return':
75 ''' Inventory search results with configurable detail levels.
76 Contains project metadata, matching objects, and search metadata
77 with applied filters.
78 ''',
80 'inventory summary return':
81 ''' Human-readable summary of inventory contents. ''',
83} )