Skip to content

feat: ai-agent example - #937

Closed
abcxff wants to merge 1 commit into
04-20-feat_chat_room_react_examplefrom
04-20-feat_ai-agent_example
Closed

feat: ai-agent example#937
abcxff wants to merge 1 commit into
04-20-feat_chat_room_react_examplefrom
04-20-feat_ai-agent_example

Conversation

@abcxff

@abcxff abcxff commented Apr 21, 2025

Copy link
Copy Markdown
Collaborator

Ai agent from snippet

abcxff commented Apr 21, 2025

Copy link
Copy Markdown
Collaborator Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@abcxff
abcxff marked this pull request as ready for review April 21, 2025 01:44
@abcxff
abcxff force-pushed the 04-20-feat_ai-agent_example branch from 090fe2a to 317f869 Compare April 27, 2025 05:25
@abcxff
abcxff force-pushed the 04-20-feat_chat_room_react_example branch from b0887f7 to 23135ff Compare April 27, 2025 05:25

@NathanFlurry NathanFlurry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Update to v0.9

Comment on lines +14 to +24
"dependencies": {
"@actor-core/react": "workspace:*",
"@ai-sdk/openai": "^1.3.16",
"@types/react": "^19",
"@types/react-dom": "^19",
"actor-core": "workspace:*",
"dotenv": "^16.5.0",
"react": "^19",
"react-dom": "^19",
"react-scripts": "^5.0.1"
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The code in actors/app.ts imports generateText, jsonSchema, and tool from the ai package, but this dependency is missing from the package.json file. Please add "ai": "^4.3.9" to the dependencies section to ensure the project builds correctly.

Suggested change
"dependencies": {
"@actor-core/react": "workspace:*",
"@ai-sdk/openai": "^1.3.16",
"@types/react": "^19",
"@types/react-dom": "^19",
"actor-core": "workspace:*",
"dotenv": "^16.5.0",
"react": "^19",
"react-dom": "^19",
"react-scripts": "^5.0.1"
},
"dependencies": {
"@actor-core/react": "workspace:*",
"@ai-sdk/openai": "^1.3.16",
"@types/react": "^19",
"@types/react-dom": "^19",
"actor-core": "workspace:*",
"ai": "^4.3.9",
"dotenv": "^16.5.0",
"react": "^19",
"react-dom": "^19",
"react-scripts": "^5.0.1"
},

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

@NathanFlurry
NathanFlurry deleted the 04-20-feat_ai-agent_example branch March 30, 2026 22:18
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.

2 participants