chore(weave_ts): add sdks/node/examples/agent.ts#6941
Open
drtangible wants to merge 5 commits into
Open
Conversation
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=5e539b9c15b8411a03f4a9f8bbe2ff6a45dec9a9 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
ebfcbdc to
794e743
Compare
5a07c81 to
f04c93f
Compare
f04c93f to
be43165
Compare
612e2d0 to
9cc8597
Compare
Base automatically changed from
05-20-chore_weave_fix_basic_type_errors_in_sdks_node_examples
to
master
May 22, 2026 18:38
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds a quick port of @rgao-coreweave's Python agent example (https://colab.research.google.com/drive/1lqPraqf3pvKGG9gNtnfIC1ucHOoYtayz?usp=sharing) to
examples/to feel out the TS APIs, and see data make its way into the UI.Example:
➜ node git:(master) pnpm tsx examples/agent.ts Initializing project: benmocha-/examples session_id = 019e5046-35f3-7801-b64e-e5bf5671a517 USER: List the names of a couple dinosaurs that were carnivores. AGENT: A couple of carnivorous dinosaurs are Tyrannosaurus and Giganotosaurus, both of which are part of the Theropoda clade. USER: List a couple more that were herbivores. AGENT: A couple of herbivorous dinosaurs are Triceratops and Stegosaurus, both of which belong to the Ornithischia clade. USER: Summarize what we discussed in one sentence. AGENT: We discussed carnivorous dinosaurs such as Tyrannosaurus and Giganotosaurus, as well as herbivorous dinosaurs like Triceratops and Stegosaurus.