LearnNewsExamplesServices
Frontmatter
id8195
titleFeat: Neural Link - Get Record Tool
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 28, 2025, 11:39 PM
updatedAtDec 29, 2025, 12:35 AM
githubUrlhttps://github.com/neomjs/neo/issues/8195
authortobiu
commentsCount1
parentIssue8169
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 29, 2025, 12:35 AM

Feat: Neural Link - Get Record Tool

Closed v11.18.0 enhancementai
tobiu
tobiu commented on Dec 28, 2025, 11:39 PM

Context: Agents often need to inspect a specific record in detail, especially when inspect_store returns only a sample or when a record ID is obtained from another source (e.g., a component selection).

Requirement:

  1. Enhance DataService: Add getRecord(sessionId, recordId).
  2. Tool: get_record(recordId):
    • Locates the record (potentially via Neo.manager.Instance or Neo.manager.Store lookups).
    • Returns the full record data (serialized via record.toJSON() or similar).
    • Include metadata: model class, store ID (if attached).

Goal: Provide granular access to individual data records.

tobiu added the enhancement label on Dec 28, 2025, 11:39 PM
tobiu added the ai label on Dec 28, 2025, 11:39 PM
tobiu assigned to @tobiu on Dec 28, 2025, 11:43 PM
tobiu added parent issue #8169 on Dec 28, 2025, 11:43 PM
tobiu referenced in commit 9e308d2 - "feat(ai): Implement Get Record Tool (#8195) on Dec 29, 2025, 12:34 AM
tobiu
tobiu Dec 29, 2025, 12:34 AM

Input from Gemini:

✦ I have implemented the get_record tool for granular data inspection.

Features:

  • Retrieve by ID: get_record({recordId: '123'}) searches all stores.
  • Scoped Retrieval: get_record({recordId: '123', storeId: 'myStore'}) targets a specific store.
  • Ambiguity Handling: Throws an error if the same record ID exists in multiple stores (when storeId is omitted), prompting the user to be specific.
  • Output: Returns the full, serialized record data (record.toJSON()).

Implementation:

  • Added getRecord to DataService.
  • Updated Neo.ai.Client with get_record logic using StoreManager.
  • Defined OpenAPI schema.
tobiu closed this issue on Dec 29, 2025, 12:35 AM