LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    Chat LangChain

    What can I help with?

    Enter to send·Shift+Enter new line

    Menu

    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraph-clideployment_metricscompact_deployment_metrics
    Function●Since v0.4

    compact_deployment_metrics

    Copy
    compact_deployment_metrics(
      response: dict[str, Any],
      deployment_id: str,
      *,
      start_time:
    View source on GitHub
    str
    ,
    end_time
    :
    str
    ,
    summary
    :
    bool
    =
    False
    )
    ->
    dict
    [
    str
    ,
    Any
    ]

    Reshape UI charts without mutating the response; step is in seconds.