Skip to content

Conversation

@uerka
Copy link
Contributor

@uerka uerka commented Dec 18, 2025

Q A
Bug fix? yes
New feature? no
Docs? no
Issues
License MIT

Currently when agent call includes images/files profiler throws exception 'Serialization of 'Closure' is not allowed' and therefore cannot store profile.
Added __serialize() methods to File class and also displaying of files/images in profiler.

@uerka uerka marked this pull request as ready for review December 18, 2025 15:09
@carsonbot carsonbot added Bug Something isn't working Status: Needs Review labels Dec 18, 2025
@carsonbot
Copy link
Collaborator

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@OskarStark OskarStark added the AI Bundle Issues & PRs about the AI integration bundle label Dec 18, 2025
@carsonbot carsonbot changed the title [Profiler] avoid serializing closures for files and images [AI Bundle][Profiler] avoid serializing closures for files and images Dec 18, 2025
@OskarStark
Copy link
Contributor

Thank you @uerka for taking care of this regression.

OskarStark added a commit that referenced this pull request Dec 18, 2025
…and images (uerka)

This PR was squashed before being merged into the main branch.

Discussion
----------

[AI Bundle][Profiler] avoid serializing closures for files and images

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Docs?         | no
| Issues        |
| License       | MIT

Currently when agent call includes images/files profiler throws exception 'Serialization of 'Closure' is not allowed' and therefore cannot store profile.
Added __serialize() methods to File class and also displaying of files/images in profiler.

Commits
-------

90ced03 [AI Bundle][Profiler] avoid serializing closures for files and images
@OskarStark OskarStark closed this Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Bundle Issues & PRs about the AI integration bundle Bug Something isn't working Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants