---
title: types | CodeWeaver Docs
description: API reference for codeweaver.server.agent_api.search.types
url: "https://docs.knitli.com/api/server/agent_api/search/types"
type: static
generatedAt: "2026-04-17T17:21:09.703Z"
---

# types
       [Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F.%20I%20want%20to%20ask%20questions%20about%20it.)[View in Markdown](/codeweaver/api/server/agent_api/search/types.md)       [Share on LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F)[Share on X](https://x.com/intent/tweet?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F&text=types)[Share on Threads](https://threads.net/intent/post?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F&text=types)[Share on Bluesky](https://bsky.app/intent/compose?text=types%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F)[Share on Facebook](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F)[Share on Reddit](https://reddit.com/submit?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F&title=types)[Share on Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F&t=types)[Share on Email](mailto:?subject=types&body=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F)[Share on WhatsApp](https://wa.me/?text=types%20https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F)[Share on Telegram](https://t.me/share/url?url=https%3A%2F%2Fdocs.knitli.com%2Fcodeweaver%2Fapi%2Fserver%2Fagent_api%2Fsearch%2Ftypes%2F&text=types)
# `codeweaver.server.agent_api.search.types`
[Section titled “codeweaver.server.agent_api.search.types”](#codeweaverserveragent_apisearchtypes)
Types and models for the find_code agent API.

## Class: `CodeMatch`
[Section titled “Class: CodeMatch”](#class-codematch)
Individual code match with context and metadata.

### Method: `serialize_for_cli`
[Section titled “Method: serialize_for_cli”](#method-serialize_for_cli)

**

```
serialize_for_cli()
```

Serialize code match for CLI display.

Returns a dict suitable for rendering in CLI output formats.

### Method: `validate_span`
[Section titled “Method: validate_span”](#method-validate_span)

**

```
validate_span()
```

Validate span consistency.

## Class: `CodeMatchType`
[Section titled “Class: CodeMatchType”](#class-codematchtype)
Enumeration of code match types.

## Class: `FindCodeResponseSummary`
[Section titled “Class: FindCodeResponseSummary”](#class-findcoderesponsesummary)
Structured response from find_code tool.

### Method: `assemble_cli_summary`
[Section titled “Method: assemble_cli_summary”](#method-assemble_cli_summary)

**

```
assemble_cli_summary()
```

Assemble a concise CLI summary of the response.

### Method: `get_schema`
[Section titled “Method: get_schema”](#method-get_schema)

**

```
get_schema()
```

Get the JSON schema for the model as a Python dictionary.

### Method: `populate_computed_fields`
[Section titled “Method: populate_computed_fields”](#method-populate_computed_fields)

**

```
populate_computed_fields()
```

Populate computed fields from other data.

## Class: `FindCodeSubmission`
[Section titled “Class: FindCodeSubmission”](#class-findcodesubmission)
Structured submission for find_code tool.