# Run the agent
result = agent.run_sync('Where does "hello world" come from?')
print(result.data)
```

<Frame>
  <img src="https://files.buildwithfern.com/https://opik.docs.buildwithfern.com/docs/opik/2026-01-30T17:33:07.444Z/img/cookbook/pydantic-ai_trace_cookbook.png" alt="Pydantic AI tracing" />
</Frame>

## Advanced usage

You can reduce the amount of data logged to Opik by setting `capture_all` to `False`:

```python
import logfire

logfire.configure(
    send_to_logfire=False,
)
logfire.instrument_httpx(capture_all=False)
```

When this parameter is set to `False`, we will not log the exact request made
to the LLM provider.

## Further improvements

If you would like to see us improve this integration, simply open a new feature
request on [Github](https://github.com/comet-ml/opik/issues).