Skip to content

feat(ai): add Context7 documentation tools integration - #299

Merged
letstri merged 33 commits into
mainfrom
feat/context-implementation
Jan 18, 2026
Merged

feat(ai): add Context7 documentation tools integration#299
letstri merged 33 commits into
mainfrom
feat/context-implementation

Conversation

@ifeelBALANCED

@ifeelBALANCED ifeelBALANCED commented Jan 12, 2026

Copy link
Copy Markdown
Collaborator

Description of Changes

What was changed?

  • Fixed TypeScript type error in ChatMessageTool component after Context7 integration
  • Updated component props interface to accept both ToolUIPart and DynamicToolUIPart types
  • Added missing import for DynamicToolUIPart from the 'ai' package
  • Applied code formatting improvements (line wrapping, consistent spacing)

Why was it changed?

The TypeScript error occurred because the ChatMessageTool component was refactored to handle both regular AI tools and dynamic tools (added with the Context7 documentation tools integration), but the type definitions weren't updated to match. The component's props interface only accepted ToolUIPart types, while the code was passing both ToolUIPart and DynamicToolUIPart types, causing a type mismatch error:

Type 'DynamicToolUIPart | ToolUIPart<...>' is not assignable to type 'ToolUIPart & { input?: unknown; output?: unknown; }'

Any related issues or discussions?

This fix was necessary after the Context7 documentation tools integration (commit: feat(ai): add Context7 documentation tools integration) which added new dynamic tool capabilities to the AI chat system.

Closes #281

2026-01-12.01.56.44.mov

@railway-app

railway-app Bot commented Jan 12, 2026

Copy link
Copy Markdown

This PR was not deployed automatically as @ifeelBALANCED does not have access to the Railway project.

In order to get automatic PR deploys, please add @ifeelBALANCED to your workspace on Railway.

@ifeelBALANCED
ifeelBALANCED requested a review from letstri January 12, 2026 00:05

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but review if ai features are working correctly or not .

Comment thread apps/api/src/ai-tools.ts Outdated
@ifeelBALANCED

Copy link
Copy Markdown
Collaborator Author

Looks good but review if ai features are working correctly or not .

good

@ifeelBALANCED
ifeelBALANCED force-pushed the feat/context-implementation branch from 42828f8 to 0e50898 Compare January 14, 2026 20:10
@letstri
letstri merged commit 6d447e0 into main Jan 18, 2026
1 check passed
@letstri
letstri deleted the feat/context-implementation branch January 18, 2026 22:42
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.

Add Context7 to chat tools

3 participants