### Type Normalization Example Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verify type normalization for attribute types. Ensure that types are represented as `"CatalogRef.X"` and not as `"cfg:CatalogRef.X"`. ```json ["CatalogRef.X"] ``` -------------------------------- ### Get Index Info Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Retrieve index information using `get_index_info()`. Verify that `builder_version` is 11, and `has_object_attributes` and `has_predefined_items` are True. ```python get_index_info() ``` -------------------------------- ### Get Index Information Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Retrieve index diagnostic information, including the builder version. This is useful for verifying index health and configuration. ```bsl get_index_info().builder_version ``` -------------------------------- ### Help Recipes for Attributes and Predefined Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use the `help()` function to display recipes for 'attributes' and 'predefined'. This verifies that recipes are displayed correctly. ```python help('attributes') ``` ```python help('predefined') ``` -------------------------------- ### Display Help Recipe for Search Objects Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verify that the help recipe for search_objects is displayed correctly. This ensures documentation is accessible and accurate. ```bsl help('search_objects') ``` -------------------------------- ### Display Help Recipe for search_regions Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that the help recipe for `search_regions` is displayed correctly. ```python help('search_regions') ``` -------------------------------- ### Verify Index Diagnostics with get_index_info Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies the builder version, and the presence of regions and module headers using `get_index_info()`. ```python get_index_info() # builder_version=8, has_regions=True, has_module_headers=True ``` -------------------------------- ### Key Scenario: Find Predefined by Name Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md This demonstrates a key scenario where `find_predefined` is used to find 'РеализуемыеАктивы' in a single call, replacing a previous 7-step process. ```python find_predefined('РеализуемыеАктивы') ``` -------------------------------- ### Chaining Search Operations Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Demonstrates chaining multiple search and parsing operations. This allows for a workflow from business name to technical name to structure. ```bsl search_objects → find_module → parse_object_xml ``` -------------------------------- ### Business Recipe for Attribute Type Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Access business recipes using 'help(\'тип реквизита\')'. This recipe combines `find_predefined` and `find_attributes`. ```python help('тип реквизита') ``` -------------------------------- ### Chained Analysis Workflow Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Demonstrates a chaining workflow: `search_regions` to `extract_procedures` to `find_register_movements`. ```python search_regions → extract_procedures → find_register_movements ``` -------------------------------- ### Search Integration for Predefined Items Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Integrate search functionality to find predefined items. Results will include a new `source_type='predefined'` field. ```python search(query, scope='predefined') ``` -------------------------------- ### Differentiate Search Objects vs Search Methods Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Understand the workflow difference between search_objects and search_methods. search_objects is for finding data objects, while search_methods is for code methods. ```bsl search_objects vs search_methods ``` -------------------------------- ### Search Module Headers for Customization Markers Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that `search_module_headers('++')` can find modules containing `++` modification markers. ```python search_module_headers('++') ``` -------------------------------- ### Verify Index Has Synonyms Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Check if the index has synonyms enabled. This is a key diagnostic metric for search functionality. ```bsl has_synonyms=True ``` -------------------------------- ### Search All Objects with Empty Query Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md An empty query in search_objects returns all objects, subject to a defined limit. This is useful for retrieving a broad set of data. ```bsl search_objects('') ``` -------------------------------- ### Search Module Headers by Comment Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that `search_module_headers(query)` finds modules by header comment, ignoring Copyright noise. ```python search_module_headers(query) ``` -------------------------------- ### Search Regions with Empty Query Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that `search_regions('')` returns all regions, respecting any applicable limit. ```python search_regions('') ``` -------------------------------- ### Search Module Headers for EDT Annotations Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that `search_module_headers('@strict-types')` can find modules annotated with `@strict-types`. ```python search_module_headers('@strict-types') ``` -------------------------------- ### Search Regions by Name Substring Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that `search_regions(query)` can find regions by name substring and return their category. ```python search_regions(query) ``` -------------------------------- ### Ranking: Exact Name First Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Ensures that an exact name match is ranked first (rank 0) in search results. This is crucial for precise object retrieval. ```bsl search_objects('АвансовыйОтчет') ``` -------------------------------- ### Find Predefined Items by Object Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use `find_predefined` to retrieve all predefined items associated with a specific chart or catalog. ```python find_predefined(object_name='X') ``` -------------------------------- ### Synonym Search for Predefined Items Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Perform a synonym search for predefined items using Russian synonyms. This demonstrates the search's multilingual capabilities. ```python search('Реализуемые активы', scope='predefined') ``` -------------------------------- ### Search Integration for Attributes Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Integrate search functionality to find attributes. Results will include a new `source_type='attribute'` field. ```python search(query, scope='attributes') ``` -------------------------------- ### Search Objects by Russian Business Name Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use search_objects to find objects by their Russian business name. This is useful for synonym search functionality. ```bsl search_objects(query) ``` -------------------------------- ### Cyrillic Case-Insensitive Search Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verify Cyrillic case-insensitive search by querying with a lowercase term. This ensures that the search correctly matches capitalized entries. ```bsl search_objects('расчет') ``` -------------------------------- ### Category Prefix Search Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Filter search results to include only specific categories, such as CommonModules, by using a category prefix in the query. ```bsl search_objects('общий модуль') ``` -------------------------------- ### Find Attributes by Kind Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use `find_attributes` to filter attributes by their kind, such as 'dimension', 'attribute', 'resource', or 'ts_attribute'. ```python find_attributes(kind='dimension') ``` -------------------------------- ### Find Attributes by Object Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use `find_attributes` to retrieve all attributes associated with a specific object, including TS columns. ```python find_attributes(object_name='X') ``` -------------------------------- ### Find Predefined Items by Name Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use `find_predefined` to search for predefined items by their name. This function also returns normalized types. ```python find_predefined(name='X') ``` -------------------------------- ### Case-Insensitive Region Search Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that `search_regions('проведение')` can find 'Проведение' despite a case mismatch. ```python search_regions('проведение') ``` -------------------------------- ### Verify Category Field in Search Results Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Verifies that each result from `search_regions('Проведение')` includes a `category` field (e.g., Documents, CommonModules). ```python search_regions('Проведение') ``` -------------------------------- ### Find Attributes by Name Source: https://github.com/dach-coin/rlm-tools-bsl/blob/master/docs/full_analysis_prompt.md Use `find_attributes` to search for attributes by their name. This function searches across all indexed categories and returns normalized types. ```python find_attributes(name='X') ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.