> For the complete documentation index, see [llms.txt](https://docs.eyepop.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eyepop.ai/platform/sources-and-options/options/component-parameters.md). Agents can also search and read this documentation through its [MCP server](https://docs.eyepop.ai/~gitbook/mcp).

# Component Parameters

Override a Pop component parameters for one source

A Pop component can be given parameters when the Pop is defined — the prompts of an open-vocabulary ability, for instance. Component parameters override those **for one source**, so a single session can ask a different question of every image without redefining the Pop.

Give the component an `id` in the Pop, then reference that id when you submit the source.

{% tabs %}
{% tab title="Python" %}

```python
from eyepop.worker.worker_types import ComponentParams, InferenceComponent, Pop

pop = Pop(components=[
    InferenceComponent(id=1, ability="eyepop.sam3.detect:latest"),
])

with EyePopSdk.sync_worker(pop=pop) as endpoint:
    result = endpoint.upload(
        "photo.jpg",
        params=[ComponentParams(componentId=1, values={
            "prompts": [{"prompt": "hard hat"}, {"prompt": "safety vest"}],
        })],
    ).predict()
```

{% endtab %}

{% tab title="Node" %}

```typescript
import { EyePop, PopComponentType } from '@eyepop.ai/eyepop'

const endpoint = await EyePop.workerEndpoint({
    pop: {
        components: [
            { type: PopComponentType.INFERENCE, id: 1, ability: 'eyepop.sam3.detect:latest' },
        ],
    },
}).connect()

const results = await endpoint.process({
    source: { path: 'photo.jpg' },
    componentParams: [
        {
            componentId: 1,
            values: { prompts: [{ prompt: 'hard hat' }, { prompt: 'safety vest' }] },
        },
    ],
})
```

{% endtab %}
{% endtabs %}

Which values a component accepts depends on its ability — see [Open vocabulary](https://docs.eyepop.ai/platform/abilities/open-vocabulary.md) for the abilities that take `prompts`, and [Components](https://docs.eyepop.ai/platform/pop/pop-components.md). The values replace the component's `params` for this source only; the next source gets the Pop's own `params` again unless it carries component parameters of its own.

### Video chunking

A component whose ability reasons over spans of video, such as [Classify an event](https://docs.eyepop.ai/platform/abilities/open-vocabulary/classify-an-event.md), takes the source's own chunking under the component's attribute names: `videoChunkLengthSeconds`, the chunk length in seconds, and `videoChunkOverlap`, the share of a chunk the next one repeats. They win over the component's own [`videoChunkLengthSeconds` and `videoChunkOverlap`](https://docs.eyepop.ai/platform/pop/pop-components/inference.md) for this source:

```json
{ "componentId": 1, "values": { "videoChunkLengthSeconds": 4, "videoChunkOverlap": 0.25 } }
```

A length of 0 or less, or an overlap of 0.5 or more, is refused when the source is submitted. A component whose ability does not chunk video ignores them.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eyepop.ai/platform/sources-and-options/options/component-parameters.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
