Skip to content

chore(weave_ts): Use types provided by @openai/agents#6970

Open
drtangible wants to merge 3 commits into
masterfrom
05-26-chore_weave_ts_use_types_provided_by_openai_agents
Open

chore(weave_ts): Use types provided by @openai/agents#6970
drtangible wants to merge 3 commits into
masterfrom
05-26-chore_weave_ts_use_types_provided_by_openai_agents

Conversation

@drtangible
Copy link
Copy Markdown
Contributor

@drtangible drtangible commented May 26, 2026

Description

  • We manually maintain some duplicated types for 3rd party libraries. This can mask type issues / bugs that can be caught by pointing to the library-provided types via devDependencies.

  • This change removes some of the duplicated @openai/agents types.

Copy link
Copy Markdown
Contributor Author

drtangible commented May 26, 2026

@wandbot-3000
Copy link
Copy Markdown

wandbot-3000 Bot commented May 26, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

from_agent?: string;
to_agent?: string;
};
export type {CustomSpanData, Trace, TracingProcessor} from '@openai/agents';
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: eventually we can just use types directly from the library, just keeping change minimal w/this PR.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just want to make sure: will this incur cost for anyone not using openai?

Base automatically changed from 05-26-chore_weave_ts_remove_unnecessary_type_assertions_in_openai.agents.ts to master May 26, 2026 23:03
@drtangible drtangible force-pushed the 05-26-chore_weave_ts_use_types_provided_by_openai_agents branch from 0f27ffb to 46f800d Compare May 27, 2026 18:42
@drtangible drtangible force-pushed the 05-26-chore_weave_ts_use_types_provided_by_openai_agents branch from cdde2d1 to 70eca1a Compare May 28, 2026 14:31
@drtangible drtangible marked this pull request as ready for review May 28, 2026 17:04
@drtangible drtangible requested review from a team as code owners May 28, 2026 17:04
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