> ## Documentation Index
> Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# search

## get\_sessions

```python theme={null}
def get_sessions(project_id: str,
                 experiment_id: Optional[str]=None,
                 log_stream_id: Optional[str]=None,
                 filters: Optional[list[FilterType]]=None,
                 sort: Optional[LogRecordsSortClause]=None,
                 limit: int=100,
                 starting_token: int=0) -> LogRecordsQueryResponse
```

Queries for sessions in a project.

**Arguments**

* `project_id`: The unique identifier of the project.
* `experiment_id`: Filter records by a specific experiment ID.
* `log_stream_id`: Filter records by a specific run ID.
* `filters`: A list of filters to apply to the query.
* `sort`: A sort clause to order the query results.
* `limit`: The maximum number of records to return.
* `starting_token`: The token for the next page of results.

**Returns**

* `A LogRecordsQueryResponse object containing the query results.`:

## get\_spans

```python theme={null}
def get_spans(project_id: str,
              experiment_id: Optional[str]=None,
              log_stream_id: Optional[str]=None,
              filters: Optional[list[FilterType]]=None,
              sort: Optional[LogRecordsSortClause]=None,
              limit: int=100,
              starting_token: int=0) -> LogRecordsQueryResponse
```

Queries for spans in a project.

**Arguments**

* `project_id`: The unique identifier of the project.
* `experiment_id`: Filter records by a specific experiment ID.
* `log_stream_id`: Filter records by a specific run ID.
* `filters`: A list of filters to apply to the query.
* `sort`: A sort clause to order the query results.
* `limit`: The maximum number of records to return.
* `starting_token`: The token for the next page of results.

**Returns**

* `A LogRecordsQueryResponse object containing the query results.`:

## get\_traces

```python theme={null}
def get_traces(project_id: str,
               experiment_id: Optional[str]=None,
               log_stream_id: Optional[str]=None,
               filters: Optional[list[FilterType]]=None,
               sort: Optional[LogRecordsSortClause]=None,
               limit: int=100,
               starting_token: int=0) -> LogRecordsQueryResponse
```

Queries for traces in a project.

**Arguments**

* `project_id`: The unique identifier of the project.
* `experiment_id`: Filter records by a specific experiment ID.
* `log_stream_id`: Filter records by a specific run ID.
* `filters`: A list of filters to apply to the query.
* `sort`: A sort clause to order the query results.
* `limit`: The maximum number of records to return.
* `starting_token`: The token for the next page of results.

**Returns**

* `A LogRecordsQueryResponse object containing the query results.`:
