> ## Documentation Index
> Fetch the complete documentation index at: https://spacesail.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Valyu Tools

## Code

```python cookbook/tools/valyu_tools.py theme={null}
from agno.agent import Agent
from agno.tools.valyu import ValyuTools

agent = Agent(
    instructions=[
        "You are a research assistant that helps find academic papers and web content",
        "Use Valyu to search for high-quality, relevant information",
        "Provide detailed analysis of search results with relevance scores",
    ],
    tools=[ValyuTools()],
    markdown=True,
)

agent.print_response("Find recent research papers about machine learning in healthcare")
```

## Usage

<Steps>
  <Snippet file="create-venv-step.mdx" />

  <Step title="Set your API keys">
    ```bash theme={null}
    export VALYU_API_KEY=your-valyu-api-key
    export OPENAI_API_KEY=xxx
    ```
  </Step>

  <Step title="Install libraries">
    ```bash theme={null}
    pip install -U valyu openai agno
    ```
  </Step>

  <Step title="Run Agent">
    <CodeGroup>
      ```bash Mac theme={null}
      python cookbook/tools/valyu_tools.py
      ```

      ```bash Windows theme={null}
      python cookbook/tools/valyu_tools.py
      ```
    </CodeGroup>
  </Step>
</Steps>
