HTTPTransportKwargs (hooks/transport.py)

crewAI · lib/crewai/src/crewai/llms/hooks/transport.py · python · MIT
integration

HTTP transport classes that inject request/response interceptors into httpx for LLM clients.

# Source: https://github.com/crewAIInc/crewAI | License: MIT | Copyright 2025 crewAI, Inc
# Provided via justclaw.it.com; keep this notice with the code.
"""HTTP transport implementations for LLM request/response interception.

This module provides internal transport classes that integrate with BaseInterceptor
to enable request/response modification at the transport level.
"""

from __future__ import annotations

from collections.abc import Iterable
from typing import TYPE_CHECKING, TypedDict

from httpx import (
    AsyncHTTPTransport as _AsyncHTTPTransport,
    HTTPTransport as _HTTPTransport,
)
from typing_extensions import NotRequired, Unpack


if TYPE_CHECKING:
    from ssl import SSLContext

    from httpx import Limits, Request, Response
    from httpx._types import CertTypes, Proxy

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key