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

# SearchResultContent

> Search result content type for grounding LLM responses with web search data.

# SearchResultContent

Search result content for grounding LLM responses with web search data.

## Import

```typescript theme={null}
import type { SearchResultContent } from '@adaline/api';
```

## Type Definition

```typescript theme={null}
interface SearchResultContent {
  modality: 'search-result';
  value: SearchResultGoogleContentValue;
}

interface SearchResultGoogleContentValue {
  type: 'google';
  references: Array<{ title: string; url: string; snippet: string }>;
  responses: Array<{ text: string }>;
}
```

## Fields

<ParamField body="modality" type="string" required>
  Must be `"search-result"`.
</ParamField>

<ParamField body="value" type="SearchResultGoogleContentValue" required>
  Google search result value with `type` (always `"google"`), `references` array of search results, and `responses` array of grounding text.
</ParamField>

***

## Example

```typescript theme={null}
import type { SearchResultContent } from '@adaline/api';

const searchResult: SearchResultContent = {
  modality: 'search-result',
  value: {
    type: 'google',
    references: [
      {
        title: 'Example Article',
        url: 'https://example.com/article',
        snippet: 'Relevant excerpt from the article...'
      }
    ],
    responses: [
      { text: 'Search grounding result based on web data.' }
    ]
  }
};
```

**JSON**:

```json theme={null}
{
  "modality": "search-result",
  "value": {
    "type": "google",
    "references": [
      {
        "title": "Example Article",
        "url": "https://example.com/article",
        "snippet": "Relevant excerpt from the article..."
      }
    ],
    "responses": [
      { "text": "Search grounding result based on web data." }
    ]
  }
}
```

***

## Related

* [MessageContent](/docs/reference/sdk/v2/typescript/types/MessageContent) — union type that includes `SearchResultContent`
* [PromptMessage](/docs/reference/sdk/v2/typescript/types/PromptMessage) — uses `MessageContent[]` as its `content` field
