File size: 1,289 Bytes
03a2b3f
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Agent reference notes

Source: https://huggingface.co/learn/agents-course/en/unit1/what-are-agents
An agent combines a language model with tools. Its loop selects an action, observes the tool result, and uses that feedback to decide whether another action is needed or whether to answer.

Source: https://huggingface.co/learn/agents-course/en/unit3/agentic-rag/introduction
Agentic retrieval augmented generation lets the agent decide when retrieval is needed. A retrieval tool returns relevant passages; the model uses those passages to ground its response and can request more evidence if the first retrieval is insufficient.

Source: https://huggingface.co/docs/hub/spaces-oauth
Hugging Face Spaces can enable profile sign-in with hf_oauth: true. Additional permissions are separate scopes and should be requested only when necessary. Public inference credentials must never be embedded in source code.

Source: https://huggingface.co/learn/agents-course/en/unit4/hands-on
The final exercise evaluates 20 public questions using exact matching. An agent should return the requested answer without extra explanation, keep its source public, and record genuine tool observations. Image or audio questions need matching perception tools; a text-only backend should state its limitations.