Skip to content

Conversation

toubatbrian
Copy link
Contributor

@toubatbrian toubatbrian commented Aug 15, 2025

Misc features to help doc example writing

Copy link

changeset-bot bot commented Aug 15, 2025

⚠️ No Changeset found

Latest commit: 11a8c6f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@toubatbrian toubatbrian marked this pull request as ready for review August 15, 2025 23:21

export type ChatContent = ImageContent | AudioContent | string;

export function createImageContent(params: {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

add utility for creating image / audio content without specifying id, cache

//
// SPDX-License-Identifier: Apache-2.0
export { Agent, StopResponse, type AgentOptions } from './agent.js';
export { Agent, StopResponse, type AgentOptions, type ModelSettings } from './agent.js';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need this to be exposed to user for pipeline node overrides

Comment on lines +43 to +62
if (
frame.type === VideoBufferType.RGBA ||
frame.type === VideoBufferType.BGRA ||
frame.type === VideoBufferType.ARGB ||
frame.type === VideoBufferType.ABGR ||
frame.type === VideoBufferType.RGB24
) {
return frame;
}

// Otherwise, attempt conversion for other formats (like YUV)
try {
return frame.convert(VideoBufferType.RGBA);
} catch (error) {
throw new Error(
`Failed to convert format ${frame.type} to RGB: ${error}. ` +
`Consider using RGB/RGBA formats or converting on the client side.`,
);
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to review this, which was from a merged PR.

@toubatbrian toubatbrian merged commit c2882f0 into dev-1.0 Aug 20, 2025
8 checks passed
@toubatbrian toubatbrian deleted the brian/misc-features branch August 20, 2025 00:07
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