bit of refactoring, first attempts at a conversational style.

going to need to really seperate the ui logic since the code is getting too big to just put it all together.
This commit is contained in:
2025-04-29 13:38:15 -04:00
parent bae93b9b3f
commit a8f264bbbc
8 changed files with 178 additions and 170 deletions

View File

@@ -0,0 +1 @@
The American crow is a large passerine bird species native to North America, known for its black plumage and distinct calls. Adults typically measure 40-50 cm (16-20 in) from beak to tail and weigh between 300-600 g (11-21 oz), with males slightly larger than females. They are highly intelligent, adaptable, and often found in various human environments. The American crow can be distinguished from other similar corvid species by its size, beak shape, and call patterns. This bird is a common and widespread species across North America, serving as a useful bioindicator for diseases such as the West Nile virus.

View File

@@ -0,0 +1 @@
The American crow (Corvus brachyrhynchos) is a large passerine bird species of the family Corvidae. It is a common bird found throughout much of North America. American crows are the New World counterpart to the carrion crow and the hooded crow of Eurasia; they all occupy the same ecological niche. Although the American crow and the hooded crow are very similar in size, structure and behavior, their calls and visual appearance are different. From beak to tail, an American crow measures 4050 cm (1620 in), almost half of which is tail. Its wingspan is 85100 cm (3339 in). Mass varies from about 300 to 600 g (11 to 21 oz), with males tending to be larger than females. Plumage is all black, with iridescent feathers. It looks much like other all-black corvids. They are very intelligent, and adaptable to human environments. The most usual call is CaaW!-CaaW!-CaaW! They can be distinguished from the common raven (C. corax) because American crows are smaller and the beak is slightly less pronounced; from the fish crow (C. ossifragus) because American crows do not hunch and fluff their throat feathers when they call; and from the carrion crow (C. corone) by size, as the carrion crow is larger and of a stockier build. American crows are common, widespread, and susceptible to the West Nile virus, making them useful as a bioindicator to track the virus's spread. Direct transmission of the virus from crows to humans is impossible.

View File

@@ -0,0 +1 @@
The American black bear (Ursus americanus), or simply black bear, is a species of medium-sized bear endemic to North America. It is the continent's smallest and most widely distributed bear species. It is an omnivore, with a diet varying greatly depending on season and location. It typically lives in largely forested areas but will leave forests in search of food and is sometimes attracted to human communities due to the immediate availability of food. The International Union for Conservation of Nature (IUCN) lists the American black bear as a least-concern species because of its widespread distribution and a large population, estimated to be twice that of all other bear species combined. Along with the brown bear (Ursus arctos), it is one of only two modern bear species not considered by the IUCN to be globally threatened with extinction. Taxonomy and evolution The American black bear is not closely related to the brown bear or polar bear, though all three species are found in North America; genetic studies reveal that they split from a common ancestor 5.05 million years ago (mya). American and Asian black bears are considered sister taxa and are more closely related to each other than to the other modern species of bears. According to recent studies, the sun bear is also a relatively recent split from this lineage. A small primitive bear called Ursus abstrusus is the oldest known North American fossil member of the genus Ursus, dated to 4.95 mya. This suggests that U. abstrusus may be the direct ancestor of the American black bear, which evolved in North America. Although Wolverton and Lyman still consider U. vitabilis an \"apparent precursor to modern black bears\", it has also been placed within U. americanus. The ancestors of American black bears and Asian black bears diverged from sun bears 4.58 mya. The American black bear then split from the Asian black bear 4.08 mya. The earliest American black bear fossils, which were located in Port Kennedy, Pennsylvania, greatly resemble the Asian species, though later specimens grew to sizes comparable to grizzly bears. From the Holocene to the present, American black bears seem to have shrunk in size, but this has been disputed because of problems with dating these fossil specimens. The American black bear lived during the same period as the giant and lesser short-faced bears (Arctodus simus and A. pristinus, respectively) and the Florida spectacled bear (Tremarctos floridanus). These tremarctine bears evolved from bears that had emigrated from Asia to the Americas 78 mya. The giant and lesser short-faced bears are thought to have been heavily carnivorous and the Florida spectacled bear more herbivorous, while the American black bears remained arboreal omnivores, like their Asian ancestors. The American black bear's generalist behavior allowed it to exploit a wider variety of foods and has been given as a reason why, of these three genera, it alone survived climate and vegetative changes through the last Ice Age while the other, more specialized North American predators became extinct. However, both Arctodus and Tremarctos had survived several other, previous ice ages. After these prehistoric ursids became extinct during the last glacial period 10,000 years ago, American black bears were probably the only bear present in much of North America until the migration of brown bears to the rest of the continent.

49
src/data/tools_list.json Normal file
View File

@@ -0,0 +1,49 @@
{
"tools": [
{
"type": "function",
"function": {
"name": "wiki_search",
"description": "Search Wikipedia",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search term to request"
}
}
},
"required": ["query"]
}
},
{
"type": "function",
"function": {
"name": "web_search",
"description": "Search DuckDuckGo (a web search engine)",
"parameters": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search term to request"
}
}
},
"required": ["query"]
}
},
{
"type": "function",
"function": {
"name": "get_datetime_iso8601",
"description": "Get the current date and time in iso8601 format to the seconds",
"parameters": {
"type": "None"
},
"required": []
}
}
]
}