Skip to content

feat: handle malformed responses from Gemini#9

Merged
vsoch merged 15 commits intomainfrom
check-malformed-response-gemini
Mar 8, 2026
Merged

feat: handle malformed responses from Gemini#9
vsoch merged 15 commits intomainfrom
check-malformed-response-gemini

Conversation

@vsoch
Copy link
Member

@vsoch vsoch commented Mar 1, 2026

Changes:

  • In getting MPI tracebacks, Gemini gets a malformed response error. This is likely because of the extra characters in the traceback, so we need to clean the output for these cases.
  • I created a simple memory database backend that will store events (e.g., calls, steps, timings) and metrics (e.g., tokens) instead of the metadata dictionaries we were carrying around on each class. The database interface can be extended to handle sqlalchemy types, but this is simple enough to start. Examples:
image image

In getting MPI tracebacks, Gemini gets a malformed response error.
This is likely because of the extra characters in the traceback, so we
need to clean the output for these cases.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from 93c6405 to bf39aa5 Compare March 1, 2026 20:40
vsoch added 2 commits March 1, 2026 12:45
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
We want to be able to store a general path and times for
traversing it, along with token metrics. I am removing the
metadata attributes on agents and using a single interface
that can be saved at the end.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from ae67406 to b2baa30 Compare March 2, 2026 05:52
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from 7de95ea to 676bb95 Compare March 3, 2026 03:19
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from 676bb95 to 6112174 Compare March 3, 2026 03:25
vsoch added 2 commits March 2, 2026 23:13
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
I also need to add the ability to time the requests

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from 75965c3 to 2001cb3 Compare March 6, 2026 04:45
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from a18ed19 to 79bf909 Compare March 6, 2026 19:19
vsoch added 7 commits March 6, 2026 17:54
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
@vsoch vsoch force-pushed the check-malformed-response-gemini branch from 1b09595 to 2572790 Compare March 7, 2026 22:49
@vsoch vsoch merged commit 29b1e94 into main Mar 8, 2026
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