AI Engineering Buildcamp: from RAG to Agents Cohort 3

Homework 3: AI Agents Statistics

Distribution of scores and reported study time for this homework.

Submissions

15

Median total score

6

Average total score

6

Score distribution

All values are points.

Questions score

Min
6
Median
6.0
Max
6
Q1
6.0
Avg
6.0
Q3
6.0

Learning in public score

Min
-
Median
0.0
Max
1
Q1
0.0
Avg
0.1
Q3
0.0

Total score

Min
6
Median
6.0
Max
7
Q1
6.0
Avg
6.1
Q3
6.0

Time distribution

All values are hours reported by students.

Lectures

Min
2.0
Median
5.0
Max
10.0
Q1
3.4
Avg
5.3
Q3
6.5

Homework

Min
0.0
Median
2.0
Max
4.0
Q1
1.3
Avg
1.9
Q3
2.0

Question breakdown

Correctness and answer distribution per question.

1. How many total results did the Wikipedia search return for the query "capybara"?

15 / 15 correct (100.0%)

1 5 0 (0.0%)
2 10 15 (100.0%)
3 15 0 (0.0%)
4 20 0 (0.0%)

2. How many of the search results contain the word "capybara" (case-insensitive) in their title?

15 / 15 correct (100.0%)

1 3 0 (0.0%)
2 5 15 (100.0%)
3 7 0 (0.0%)
4 9 0 (0.0%)

3. How many characters are in the Capybara page content?

15 / 15 correct (100.0%)

1 ~5,000 0 (0.0%)
2 ~15,000 0 (0.0%)
3 ~25,000 0 (0.0%)
4 ~35,000 15 (100.0%)

4. Which framework and LLM provider did you choose for this homework?

15 / 15 correct (100.0%)

Answer Count
PydanticAI + OpenAI 2
PydanticAI and OpenAI 2
I used Pydantic AI + OpenAI (gpt-4o-mini model) 1
Framework: PydanticAI LLM Provider: OpenAI 1
Framework = PydanticAI, Provider = OpenAI. 1
pydantic-ai and chatgpt 1
PydanticAI + Gemini 1
I did use OpenAi as LLM provider and used my own custom agent following the step provided in the lesson. 1
PydanticAI and OpenAI (gpt-4o-mini) 1
I tried out both a custom Agent and the Pydantic variety Frameworks with Anthropic claude LLM. 1
Pydantic framework 1
Framework: Custom agentic loop (from scratch), LLM provider: OpenAI (gpt-4o-mini) 1
PydanticAI and OpenAI (gpt-4o-mini as the model) 1

5. What is the main topic of the Capybara page according to your agent?

15 / 15 correct (100.0%)

Answer Count
The main topic of the Capybara page is the capybara (Hydrochoerus hydrochaeris), which is the largest living rodent native to all countries in South America except Chile. The page provides detailed information about the capybara's classification, physical description, ecology, diet, social behavior, reproduction, communication, conservation status, human interaction, and its presence in popular culture. It highlights the capybara as a semi-aquatic herbivore that lives near water, is highly social, and is hunted for its meat and hide in some areas. The page also discusses its adaptability to urbanization, presence in zoos, and cultural significance, including its popularity in internet memes. 2
The Wikipedia page is about the capybara (Hydrochoerus hydrochaeris), the largest living rodent native to South America. The page provides detailed information about the capybara's taxonomy, physical description, ecology, behavior, diet, social organization, reproduction, conservation status, and interactions with humans. It highlights that capybaras are semiaquatic herbivores native to most South American countries, living in groups near water bodies. The page also describes their anatomy, social behavior, vocalizations, and reproduction. Capybaras are hunted for meat and hides but are considered of least concern conservation-wise due to their stable population. They have adapted well to urban environments and have cultural significance in places like Japan and Venezuela. Additionally, capybaras have a notable presence in internet meme culture and popular media. 1
============================================================ FINAL ANSWER: ============================================================ The Wikipedia page on the capybara provides detailed information about this animal, which is the largest living rodent species, scientifically known as *Hydrochoerus hydrochaeris*. Capybaras are native to South America and are semiaquatic herbivores that prefer habitats near bodies of water, such as lakes, rivers, and swamps. ### Key Points: - **Physical Description**: Capybaras have a heavy, barrel-shaped body, short heads, and reddish-brown fur on their upper bodies, with yellowish-brown underneath. They can grow up to 134 cm (about 53 inches) in length and weigh between 35 to 66 kg (77 to 146 lbs). - **Habitat and Behavior**: They are social animals, typically living in groups of 10-20, but can form larger groups of up to 100 individuals during certain times. They are excellent swimmers and can hold their breath underwater for several minutes. - **Diet**: Capybaras are primarily herbivores, feeding on grasses, aquatic plants, fruits, and bark. They uniquely consume their own feces to help with digestion. - **Reproduction**: The gestation period is about 130 to 150 days, with females giving birth to an average of four pups. Young capybaras can also suckle from any female in the group, illustrating a practice known as alloparenting. - **Etymology and Classification**: The name "capybara" comes from the Tupi language, meaning "grass-eater." They belong to the genus *Hydrochoerus*, which is closely related to guinea pigs and rock cavies. - **Conservation Status**: Capybaras are currently not considered endangered and have a stable population across their native regions. This overview highlights the biological and ecological aspects of capybaras, as well as their social structure and interactions with humans and the environment. ============================================================ TOOL CALLS MADE: ============================================================ -> get_page_tool({"title":"Capybara"}) 1
Capybara is the largest living rodent, native to South America, semiaquatic herbivore etc. 1
The Wikipedia page about the **capybara** details this animal as the largest living rodent, scientifically known as *Hydrochoerus hydrochaeris*. Native to South America, it is semiaquatic and primarily herbivorous, feeding on grasses and aquatic plants. Capybaras are social creatures, often found in groups of 10-20, and can gather in larger numbers. The page covers various aspects including their habitat, diet, reproductive behavior, and interactions with humans, noting that they are not considered threatened despite being hunted in some regions. The capybara has also gained popularity in culture, particularly noted for its calm demeanor and appearances in internet memes. 1
The Wikipedia page on the **capybara** describes it as the largest living rodent, scientifically known as *Hydrochoerus hydrochaeris*. It is native to all South American countries except Chile and is a semiaquatic herbivore often found near water bodies such as rivers and lakes. **Key points from the page include:** - **Physical Characteristics**: Capybaras have a heavy body, short head, reddish-brown fur on top that fades to yellowish-brown underneath, and are generally social animals that live in groups. - **Habitat and Diet**: They inhabit savannas and dense forests, primarily feeding on grasses and aquatic plants. - **Social Behavior**: These animals are social, often forming groups of 10 to 20, but can be seen in larger groups. They communicate through a variety of vocalizations including barks and whistles. - **Reproduction**: The breeding season varies by region, and a female can give birth to a litter of four young on average. - **Conservation Status**: Capybaras are not currently threatened and have adapted well to urban environments. They are sometimes hunted for their meat and pelts. The capybara is also seen as a cultural icon in various contexts, particularly in social media and as a beloved figure in Asia, noted for its calm demeanor and perceived harmonious nature. 1
The Wikipedia page for the **capybara** discusses various aspects of this animal, which is recognized as the largest living rodent. Here are key points from the page: 1. **Species Information**: The capybara (scientific name *Hydrochoerus hydrochaeris*) is native to South America, where it inhabits savannas and forests, often near bodies of water. 2. **Physical Description**: Capybaras have a distinct barrel-shaped body, reddish-brown fur, and they typically weigh between 35 to 66 kg (about 77 to 146 lbs). 3. **Social Structure**: They are highly social animals, often found in groups ranging from 10 to 20 individuals, but can congregate in larger groups during certain seasons. 4. **Diet**: Capybaras are herbivores, primarily feeding on grasses and aquatic plants. They demonstrate unique feeding behavior, including coprophagy (eating their own feces). 5. **Ecology and Behavior**: They are excellent swimmers and can hold their breath underwater for up to five minutes. The capybara has a range of predators, including jaguars and caimans. 6. **Reproduction**: Female capybaras give birth to a litter typically consisting of four young after a gestation period of around 130 to 150 days, and young can begin eating solid food within a week. 7. **Conservation Status**: Currently, capybaras are not considered to be threatened, but they face hunting pressures in some areas. 8. **Cultural Significance**: Capybaras have gained popularity in various cultures, especially in Japan. They have become internet sensations and are featured in memes and merchandise celebrating their calm demeanor. 9. **Human Interaction**: They are farmed for meat and skins in South America, and there are venues like capybara cafés where people can interact with them. 1
The Wikipedia page about capybaras provides detailed information on this animal, specifically the species known as *Hydrochoerus hydrochaeris*, which is recognized as the largest living rodent. Native to South America, except for Chile, capybaras are semiaquatic herbivores that thrive in various environments close to water bodies, such as savannas and rainy forest areas. The page covers aspects of their biology, social behavior, diet, reproduction, and conservation status. Additionally, the article includes information about the etymology of the name "capybara," its ecological role, and its cultural significance in various regions, including their popularity in urban areas and as pets. The page also discusses their hunting for meat and skins, highlighting their role in local diets, particularly in regions like Venezuela. For further specifics on their social structures, behaviors, and adaptations to habitats, the page contains extensive references and bibliographical citations. 1
The Capybara page is about the largest living rodent in the world (Hydrochoerus hydrochaeris), native to South America. 1
This Wikipedia page is about the **capybara** (*Hydrochoerus hydrochaeris*), the world's largest living rodent. Here's a summary of the main topics covered: ## Basic Information - **Description**: A large, barrel-shaped rodent native to South America with reddish-brown fur, weighing 35-66 kg on average - **Habitat**: Found in wetlands, forests, savannas, and near bodies of water throughout South America (except Chile) - **Semi-aquatic nature**: Excellent swimmers that can hold their breath underwater for up to 5 minutes 1
he Wikipedia page on **Capybara** provides detailed information about this species, which is the largest living rodent, found throughout South America excluding Chile. Known scientifically as *Hydrochoerus hydrochaeris*, the capybara is a semiaquatic herbivore that typically inhabits savannas and dense forests near water bodies. They are highly social animals, often living in groups that can number from 10 to over 100 individuals. The page also covers their diet, physical characteristics, behavior, reproduction, and conservation status, noting that they are not considered threatened overall despite some hunting pressures and habitat loss. Additionally, the capybara has gained popularity in various cultures and on social media due to their docile nature. 1
Agent's Answer: The Wikipedia page for the **capybara** (scientific name: *Hydrochoerus hydrochaeris*) details this animal as the largest living rodent, native to South America, except for Chile. Capybaras are semi-aquatic herbivores, primarily inhabiting savannas and dense forests near water bodies, where they mainly feed on grasses and aquatic plants. Capybaras are known for their social behavior, often living in groups ranging from 10 to 20 individuals, though larger gatherings can occur. They are hunted for their meat and hide and have a stable population across much of their range, although hunting in some areas poses a risk. The page covers various topics such as their physical description, ecology, dietary habits, social structure, reproduction, communication, and conservation status. Capybaras have gained cultural significance and a fan following in various parts of the world, especially in Japan and among younger populations due to their perceived calmness and sociability. For more detailed information, you can visit the full page [here](https://en.wikipedia.org/wiki/Capybara). 1
[Tool call #1] get_page({'title': 'Capybara'}) Total tool calls made: 1 Agent answer: The Wikipedia page on the capybara provides detailed information about this remarkable rodent, the largest living rodent species. The scientific name for the capybara is *Hydrochoerus hydrochaeris*, and it is native to all South American countries except Chile. Here are some key points covered in the article: 1. **Habitat and Diet**: Capybaras are semiaquatic herbivores typically found in savannas and dense forests near water bodies. Their diet primarily consists of grasses and aquatic plants. 2. **Social Behavior**: They are highly social animals, often living in groups ranging from 10 to 20, but can form larger groups of up to 100 individuals. 3. **Etymology**: The name "capybara" is derived from the Tupi language, reflecting its dietary habits. The genus name *Hydrochoerus* combines Greek words meaning "water" and "pig." 4. **Classification**: Capybaras belong to the genus *Hydrochoerus*, and their closest relatives include guinea pigs and rock cavies. They were previously classified in their own family, Hydrochoeridae, but recent studies have placed them in the subfamily Hydrochoerinae within the family Caviidae. 5. **Physical Description**: Capybaras have barrel-shaped bodies, reddish-brown fur on the top, and yellowish-brown fur underneath. They can weigh between 35 to 66 kg (77 to 146 lbs) and can measure about 106 to 134 cm (about 3.5 to 4.4 feet) in length. 6. **Conservation Status**: They are labeled as "Least Concern" by the IUCN, but they are hunted for meat, hide, and fat. The page is rich in information covering the species' biology, ecology, and significance in local cultures, making it a valuable resource for understanding capybaras better. 1
The Wikipedia page on the **Capybara** (scientific name: *Hydrochoerus hydrochaeris*) discusses the largest living rodent, which is native to South America, excluding Chile. Capybaras are semiaquatic herbivores that typically live in groups near water bodies. They primarily feed on grasses and aquatic plants and are known for their social behavior, often forming large groups. The page includes information on their physical characteristics, habitat, diet, reproduction, behavior, and conservation status. Capybaras are considered a species of least concern by the IUCN, but they face threats from hunting and habitat loss. Additionally, they have become popular in various cultures and social media, especially in Japan and China. The **page title** extracted is "Capybara". 1

6. How many total tool calls (search + fetch combined) did your agent make when answering "What are the main threats to capybara populations?"

15 / 15 correct (100.0%)

Answer Count
two 1
Two calls. 1
3 tool calls, search → search → get_page 1
the agent made 2 total tool calls; first search_wikipedia, then get_page 1
============================================================ TOOL CALLS (in order): ============================================================ 1. search_wikipedia_tool({"query":"capybara population threats"}) 2. search_wikipedia_tool({"query":"capybara conservation threats"}) 3. search_wikipedia_tool({"query":"capybara extinction threats"}) 4. search_wikipedia_tool({"query":"capybara habitat destruction hunting threats"}) 5. get_page_tool({"title":"Deforestation"}) 6. get_page_tool({"title": "Capybara"}) 7. get_page_tool({"title": "Wildlife of Brazil"}) Total tool calls: 7 1
2 search (search_wikipedia) tool calls 1 get_page tool call request USER: What are the main threats to capybara populations? response TOOL CALL: search_wikipedia {"query":"Capybara threats"} request TOOL RETURN: search_wikipedia response TOOL CALL: search_wikipedia {"query":"Capybara"} request TOOL RETURN: search_wikipedia response TOOL CALL: get_page {"page_title":"Capybara"} request TOOL RETURN: get_page response The main threats to capybara populations include hunting and habitat loss. Capybaras are hunted for their meat and pelts in various regions, which has led to reduced numbers in some areas. Additionally, they often face competition with livestock for grazing resources, resulting in conflicts with humans. Despite these threats, capybaras are currently not considered endangered, and their populations remain stable overall in many parts of South America, thanks in part to their ability to breed rapidly and their adaptability to urban environments. 1
2 tool calls Agent's Answer: The primary threats to capybara populations largely stem from human activities and environmental changes. Here are the main threats identified: 1. **Habitat Destruction**: Urbanization and agricultural expansion reduce the natural habitats available for capybaras, which rely on wetlands and grasslands. 2. **Hunting and Poaching**: Capybaras are hunted for their meat and skin, which poses a direct threat to their populations. 3. **Agricultural Practices**: Intensive farming practices can lead to habitat degradation. The use of pesticides and fertilizers can also pollute water sources, impacting capybaras and their food supply. 4. **Climate Change**: Changes in climate patterns can disrupt the availability of water and food resources essential for capybaras, particularly in their natural habitats like the Pantanal wetlands. 5. **Infrastructural Development**: Construction of roads and urban areas can fragment their habitats, making it difficult for capybaras to move between feeding and breeding sites. Conservation efforts are crucial to mitigate these threats and protect capybara populations in their natural environments. 1
The agent made 3 tool calls: TOOL CALL (search): search_wikipedia({"query":"capybara threats"}), TOOL CALL (search): search_wikipedia({"query":"Capybara"}), TOOL CALL (search): get_page({"page_title":"Capybara"}) Final answer from the agent: The main threats to capybara populations come from both natural and human-induced factors. According to the information retrieved: 1. Hunting: Capybaras are hunted for their meat and pelts. In some areas, this has led to reductions in their numbers. 2. Competition with Livestock: In agricultural areas, humans may kill capybaras because they perceive them as competition for grazing resources with livestock. 3. Habitat Loss: Although capybaras adapt well to urbanization and can be found in parks and zoos, the destruction of their natural wetlands for agriculture or urban development can pose a threat to their populations. Despite these threats, capybara populations are generally considered stable across much of their South American range, and they have a high reproductive rate that supports population recovery. They also benefit from being farmed in some regions, which can help to ensure the protection of wetland habitats. 1
In total, there were 6 tool calls in the following order: TOOL CALL: search_wikipedia {"query":"capybara threats"} TOOL CALL: search_wikipedia {"query":"capybara conservation threats"} TOOL CALL: search_wikipedia {"query":"capybara endangered species threats"} TOOL CALL: get_page {"title": "Pantanal"} TOOL CALL: get_page {"title": "Jaguar"} TOOL CALL: get_page {"title": "Aquatic mammal"} The final reponse was: The main threats to capybara populations include: 1. **Habitat Loss**: As with many wildlife species, the loss of their natural habitats due to urban development, agriculture, and deforestation poses a significant threat. Capybaras rely on wetlands and riverine areas that are increasingly being converted for other uses. 2. **Hunting and Poaching**: Capybaras are hunted for their meat and hides. Although they are not critically endangered, hunting pressures can impact local populations, particularly in areas where they are sought after as a food source. 3. **Predation**: Natural predators such as jaguars and caimans can have an impact on capybara populations. While capybaras are well adapted to evade predators, increased predation in certain areas can contribute to population declines. 4. **Environmental Changes**: Climate change, which can cause alterations in rainfall patterns and lead to droughts or flooding, directly impacts the habitats where capybaras live and may affect their food sources. 5. **Human-Wildlife Conflict**: In regions where capybaras are seen as pests by farmers (due to their feeding habits affecting crops), they may face retaliatory killings. Overall, while capybara populations are currently stable in many areas, these threats can lead to localized declines and highlight the importance of habitat conservation and responsible management practices. 1
Tools used: search_wikipedia → get_page → search_wikipedia → get_page Total tool calls: 4 Final answer: The main threats to capybara populations include hunting, human-wildlife conflict due to grazing competition, and habitat disturbance from urbanization and wetland destruction. Despite these threats, capybaras are not currently considered threatened and maintain stable populations across most of their range due to high reproductive rates and adaptability. 1
A total of 4 tool calls: 3 for searching 1 for fetching the page 1
2 tool calls: search_wikipedia_tool({"query":"capybara threats"}) → get_page_tool({"title":"Pantanal"}) 1
The agent made 2 tool calls in total: request USER: What are the main threats to capybara populations? response TOOL CALL: search_wikipedia {"query":"Capybara"} request TOOL RETURN: search_wikipedia response TOOL CALL: get_page {"page_title":"Capybara"} request TOOL RETURN: get_page 1
5 Tool Calls search {'query': 'capybara population threats conservation'} search {'query': 'capybara habitat loss hunting endangered'} search {'query': 'capybara'} get_file {'filename': 'Deforestation'} get_file {'filename': 'Capybara'} 1
The agent made 2 total tool calls. It used the tools in this order: first search_wikipedia with the query "capybara threats", then get_page with the title "Pantanal". The final answer was that the main threats to capybara populations are related to habitat loss and environmental changes in their habitats, especially land-use changes such as cattle ranching and agriculture, along with hunting and broader habitat degradation. 1

Calculated: 11 May 2026, 14:51