# Small demo


<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

``` python
from nbdialog.core import *
from nbdialog.providers.openai import OpenAIProvider
from nbdialog.tools import search, browse
set_provider(OpenAIProvider())
set_tools([search.web_search, browse.browse])
```

``` python
write me hello world in python, like a pirate!
```

``` python
print("Ahoy, world!")
```

``` python
def hello():
    print("Hello matey!")

hello()
```

    Hello matey!

``` python
which is better?
```

Yours is better for the brief.

``` python
def hello():
    print("Hello matey!")

hello()
```

Why: - it’s actually pirate-flavored - it’s wrapped in a function, so
it’s reusable - it already runs and matches the notebook context

If you want the most minimal pirate version:

``` python
print("Ahoy, world!")
```

``` python
Give me top 5 news about bitcoin as of May 12 2026
```
