Skip to content

Conversation

@HueCodes
Copy link

Remove @ts-expect-error by narrowing the content type before
accessing the text property. Falls back to a generic message
if content is empty or not text type.

@changeset-bot
Copy link

changeset-bot bot commented Jan 14, 2026

🦋 Changeset detected

Latest commit: c17c8b1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 14, 2026

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/agents@781

commit: c17c8b1

- Cast result.content to Array<{ type: string; text?: string }> | undefined
- Add additional null check for textContent.text
- Add changeset for patch release
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.

1 participant