Skip to content

feat: Add product details agent for single product queries#66

Open
KoderFPV wants to merge 1 commit intomainfrom
feat/product-details-agent
Open

feat: Add product details agent for single product queries#66
KoderFPV wants to merge 1 commit intomainfrom
feat/product-details-agent

Conversation

@KoderFPV
Copy link
Owner

@KoderFPV KoderFPV commented Feb 7, 2026

Implement a dedicated productNode to handle product detail queries:

  • Support position-based references ("the first one", "Add testing infrastructure (Vitest + Playwright) #2")
  • Support name-based references ("Gaming Laptop Pro X1")
  • Add IProductAttribute interface for structured specifications
  • Track lastSearchResults in graph state between conversation turns
  • Extract specs from description as fallback when attributes missing

Changes:

  • domain/product.ts: Add IProductAttribute and attributes field
  • agents/graph/state.ts: Add ISearchResult and lastSearchResults
  • agents/graph/nodes/productNode.ts: New node for product details
  • agents/prompts/productPrompts.ts: LLM prompts for reference extraction
  • models/products/productsModel.ts: Add findProductByName function
  • Updated routing, translations, and tests

Implement a dedicated productNode to handle product detail queries:
- Support position-based references ("the first one", "#2")
- Support name-based references ("Gaming Laptop Pro X1")
- Add IProductAttribute interface for structured specifications
- Track lastSearchResults in graph state between conversation turns
- Extract specs from description as fallback when attributes missing

Changes:
- domain/product.ts: Add IProductAttribute and attributes field
- agents/graph/state.ts: Add ISearchResult and lastSearchResults
- agents/graph/nodes/productNode.ts: New node for product details
- agents/prompts/productPrompts.ts: LLM prompts for reference extraction
- models/products/productsModel.ts: Add findProductByName function
- Updated routing, translations, and tests

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@KoderFPV KoderFPV force-pushed the feat/product-details-agent branch from c2fec7d to d75064c Compare February 7, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant