llama-stack-mirror/docs/source/building_applications
AN YU (安宇) dd62a2388c
docs: add notes to websearch tool and two extra example scripts (#1354)
# What does this PR do?

- Adds a note about unexpected Brave Search output appearing even when
Tavily Search is called. This behavior is expected for now and is a work
in progress https://github.com/meta-llama/llama-stack/issues/1229. The
note aims to clear any confusion for new users.
- Adds two example scripts demonstrating how to build an agent using:
    1. WebSearch tool
    2. WolframAlpha tool
These examples provide new users with an instant understanding of how to
integrate these tools.

[//]: # (If resolving an issue, uncomment and update the line below)
[//]: # (Closes #[issue-number])

## Test Plan
Tested these example scripts using following steps:
step 1. `ollama run llama3.2:3b-instruct-fp16 --keepalive 60m`
step 2. 
```
export INFERENCE_MODEL="meta-llama/Llama-3.2-3B-Instruct"
export LLAMA_STACK_PORT=8321
```
step 3: `llama stack run --image-type conda
~/llama-stack/llama_stack/templates/ollama/run.yaml`
step 4: run the example script with your api keys.

expected output:

![image](https://github.com/user-attachments/assets/308ddb17-a087-4cf2-8622-b085174ea0ab)

![image](https://github.com/user-attachments/assets/639f239f-8966-433d-943c-ee6b304c0d71)


[//]: # (## Documentation)
2025-04-17 20:20:52 -04:00
..
agent.md docs: Minor updates to docs to make them a little friendlier to new users (#1871) 2025-04-04 08:10:35 -04:00
agent_execution_loop.md docs: Minor updates to docs to make them a little friendlier to new users (#1871) 2025-04-04 08:10:35 -04:00
evals.md feat(api): simplify client imports (#1687) 2025-03-20 10:15:49 -07:00
index.md docs: Minor updates to docs to make them a little friendlier to new users (#1871) 2025-04-04 08:10:35 -04:00
rag.md docs: Minor updates to docs to make them a little friendlier to new users (#1871) 2025-04-04 08:10:35 -04:00
rag.png Update docs for RAG and improve CONTRIBUTING.md 2025-01-28 06:09:48 -08:00
safety.md Fix precommit check after moving to ruff (#927) 2025-02-02 06:46:45 -08:00
telemetry.md fix: update sink name for traces and metrics in LlamaStack 0.1.8 (#1836) 2025-03-29 10:09:08 -07:00
tools.md docs: add notes to websearch tool and two extra example scripts (#1354) 2025-04-17 20:20:52 -04:00