Skip to content

Add synchronous payment transport#178

Merged
parvahuja merged 1 commit into
parv/agent-payment-runtimefrom
parv/sync-payment-transport
Jul 21, 2026
Merged

Add synchronous payment transport#178
parvahuja merged 1 commit into
parv/agent-payment-runtimefrom
parv/sync-payment-transport

Conversation

@parvahuja

Copy link
Copy Markdown
Member

Summary

  • add SyncPaymentTransport and PaymentRuntime.wrap_client(...) for existing httpx.Client instances
  • bridge async credential creation from sync callers through one lazy, closeable runtime loop
  • preserve request bodies, client auth behavior, redirected challenge policy, and lazy paid response streams
  • cover a real OpenAI sync streaming call from a bare worker thread

Stacked on #170.

Validation

  • uv run --all-extras --group dev ruff check .
  • uv run --all-extras --group dev ruff format --check .
  • uv run --all-extras --group dev pyright
  • uv run --all-extras --group dev pytest -q (805 passed, 41 skipped)

@socket-security

socket-security Bot commented Jul 21, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedpypi/​openai@​2.46.090100100100100

View full report

@parvahuja
parvahuja force-pushed the parv/sync-payment-transport branch from c7fde68 to 343af19 Compare July 21, 2026 16:34
@parvahuja
parvahuja merged commit 343af19 into parv/agent-payment-runtime Jul 21, 2026
7 checks passed
@parvahuja

Copy link
Copy Markdown
Member Author

Folded into #170, which now contains the shared runtime, sync transport, instrumentation, response hooks, and receipt extensions as one draft.

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