Skip to content

[api-sync 2026-07-22] gradientlabs-python: sync to OpenAPI spec#135

Open
jafrog wants to merge 2 commits into
mainfrom
api-client-sync/2026-07-22
Open

[api-sync 2026-07-22] gradientlabs-python: sync to OpenAPI spec#135
jafrog wants to merge 2 commits into
mainfrom
api-client-sync/2026-07-22

Conversation

@jafrog

@jafrog jafrog commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

What changed

Syncs the Python client to the current public OpenAPI spec. The only drift was a single new endpoint:

  • POST /conversations/{id}/memories (bulk_upload_conversation_memories) — bulk-upload a batch of memories scoped to a conversation for the AI agent to search over on demand.
    • New _conversation_memories_upload.py with BulkUploadMemoriesParams (idempotency_key: str, memories: List[Dict[str, Any]], optional created_at_keys: List[str]) and BulkUploadMemoriesResponse (upload_id: str, memories_inserted: int).
    • Method wired onto Client next to the other conversation methods; params/response re-exported via the existing from .client import *.
    • Unit test (tests/test_conversation_memories_upload.py) and a runnable example (examples/memories/run.py), both mirroring existing style.

Version bumped 0.12.10.13.0 (MINOR — additive new endpoint) in a separate commit.

How verified

  • uv run --frozen pytest tests → the 2 new memories tests pass; overall 17 passed, 4 failed. The 4 failures are pre-existing, time-based webhook signature-expiry tests (hardcoded fixture timestamps now past the leeway window) that fail identically on the untouched base branch — unrelated to this change.
  • uv run --frozen ruff checkAll checks passed!
  • ruff format applied to all changed files.

No internal names leaked; no new dependencies; GET /spec not exposed.

jafrog and others added 2 commits July 22, 2026 13:25
Adds POST /conversations/{id}/memories to upload a batch of memories
scoped to a conversation for the agent to search over on demand.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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