Skip to content

Conversation

@hntrl
Copy link
Member

@hntrl hntrl commented Feb 10, 2026

Summary

Add SDK version metadata to all agent runs created via createDeepAgent. Every trace sent to LangSmith now includes sdk: "deepagents-js" and sdk_version in the run metadata, making it easy to identify and filter deep agent runs.

Changes

  • libs/deepagents/src/agent.ts — Declare a __SDK_VERSION__ build-time constant and attach { sdk: "deepagents-js", sdk_version } to the .withConfig() metadata on the compiled agent.
  • libs/deepagents/tsdown.config.ts — Read the package version from package.json at build time and inject it via tsdown's define option, replacing __SDK_VERSION__ with the literal version string in the bundle.
  • libs/deepagents/vitest.config.ts — Mirror the same define so that __SDK_VERSION__ resolves during tests.

hntrl and others added 2 commits February 10, 2026 16:53
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