langchain/client/langchain.py/LangChainPlusClient/list_runs
class LangChainPlusClient:    def list_runs(
        self,
        *,
        session_id: Optional[str] = None,
        session_name: Optional[str] = None,
        run_type: Optional[str] = None,
        **kwargs: Any,
    ) -> Iterator[Run]:
        """List runs from the LangChain+ API."""
        if session_name is not None:
            if session_id is not None:
                raise ValueError("Only one of session_id or session_name may be given")
            session_id = self.read_session(session_name=session_name).id
        query_params = ListRunsQueryParams(
            session_id=session_id, run_type=run_type, **kwargs
        )
        filtered_params = {
            k: v for k, v in query_params.dict().items() if v is not None
        }
        response = self._get("/runs", params=filtered_params)
        raise_for_status_with_text(response)
        yield from [Run(**run) for run in response.json()]