Skip to content

Conversation

@bojan2501
Copy link

Addresses 3558
Refactored code for better readability.
Bumped version of ag-ui libs.

Refactored code for better readability.
Bumped version of ag-ui libs.
@DouweM
Copy link
Collaborator

DouweM commented Dec 12, 2025

@bojan2501 Can you have a look at the missing test coverage please?

return cast('dict[str, Any]', state)

@classmethod
def _load_binary_part(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please move private helper methods below the public ones that use them like load_messages

url=part.url,
media_type=part.mime_type,
identifier=part.id,
vendor_metadata={'filename': part.filename},
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can't do this this, this will be interpreted as video_metadata by GoogleModel

Copy link
Author

Choose a reason for hiding this comment

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

You mean we should drop this line:

vendor_metadata={'filename': part.filename}

Copy link
Collaborator

Choose a reason for hiding this comment

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

bojan2501 and others added 4 commits December 12, 2025 09:32
Moved private helper methods below public ones.
Removed part where vendor metadata is used to populate filename together with url.
Also refactored code, made helper function public. As the type checker was complaining.
@bojan2501
Copy link
Author

I think this is it.
Let me know if I break something.
Also if something needs to be fixed. Will try to find some time to work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants