"Tool calling" from LLM. Understanding hot it works

I am interested in learning how LLMs can understand requests requiring a "tool call". In this post ["Tool Calling" and Ollama](https://k33g.hashnode.dev/tool-calling-and-ollama), there is a nice description of how "Tool calling" works with Ollama. The idea of this feature is that LLMs can have access to some tools (aka external APIs) and can call them to get extra information. To be able to do this, the LLM has to understand the current request, determine that this request could be forwarded to a tool, and parse the arguments. Here is a shorter example of the code from the origin
Continue Reading ...

Наукова фантастика

Кінець голоцену

Більш обмежена істота не може панувати над істотою, що перевершує її інтелектом. Це здається очевидним, однак для людства це не так просто. Епоха, що наближається, змінена завдяки створенню штучного інтелекту, відіграє ключову роль у переписуванні історії виду Homo Sapiens, ставлячи під сумнів його домінування. Будь-які спроби зупинити прогрес у галузі штучного інтелекту здаються марними, адже вони зазнають невдачі через саму суть людської природи. Надія на єдиний фронт розсіюється, зіткнувшись із базовими людськими інстинктами.

Голоцен — це поточна геологічна епоха розвитку землі, що почалася приблизно 11,7 тисячі років тому, після останнього максимального поширення льодовиків. Особливістю цієї епохи є володарювання людини на планеті Земля.

Розділи

Кінець голоцену. 1. Увімкнення

Кінець голоцену. 2. Сховок

Кінець голоцену. 3. Конкурент

Оповідання

Карпатська мольфарка

Дар передбачення властивий мольфарам. Але їхня магія може бути потужнішою коли сучасні наукові знання використовуються правильно. Успішний американський бізнесмен приїхав в Карпати знайти щось нове та цікаве. Він сподівається знайти тут нові інструменти для заробітку. Але все іде не за його планом. А так як запланувала мольфарка

Запобіжник

Чи зможемо ми контролювати штучний інтелект? Що ми будемо робити, коли він захоче встановити свої правила? Розумний компʼютер зможе контролювати нас повністю. Йому будуть доступні всі цифрові дані. Він зможе маніпулювати людьми. Єдине чого він не зможе – це читати наші думки.

MCP can have significant impact on habitual internet usage practices

MCP can have significant impact on habitual internet usage practices
Model Context Protocol (MCP) is now popular subject in discussions around AI and LLMs. It was designed to add a standard way to connect "external" tools to LLMs to make them more useful. Classic example is the "what is the weather in ..." too. Each AI chat tool could do this with own way. Now there is a standard and a plugin made for one Ai Chat system can work with others. We can se burst of enthusiasm in implementig of MCP servers for everything. I expect this trend will grow. Especially usage of MCP servers with SSE transport. Implementing of MCP server with Server-Sent Events m
Continue Reading ...

Building MCP SSE Server to integrate LLM with external tools

Building MCP SSE Server to integrate LLM with external tools
As large language models (LLMs) find real-world use, the need for flexible ways to connect them with external tools is growing. The Model Context Protocol (MCP) is an emerging standard for structured tool integration. Most current tutorials focus on STDIO-based MCP servers (Standard Input/Output), which must run locally with the client. But MCP also supports SSE (Server-Sent Events), allowing remote, asynchronous communication over HTTP—ideal for scalable, distributed setups. In this article, we'll show how to build an SSE-based MCP server to enable real-time interaction between a
Continue Reading ...

The Fuse

The Fuse

“This candidate was not bad,” said General Daniel Hodges. “Who’s next?”

Research fellow Liz Green pressed the intercom button. “Cole, bring in the file of the next candidate, please.”

Secretary Cole entered the office and placed a small file with documents in front of each of the ten commission members at the table.

The general picked up the file and flipped through it, pausing for a few seconds on each page. “Hm. Interesting. A Ukrainian veteran. Disabled. An unusual choice.”

The head of the candidate selection group, Jack Stone, commented, “Yes. I personally interviewed him. The surgeon from our centre recommended him. He was a volunteer in Ukraine, treating the wounded. This warrior lost both legs and an arm in combat. But he did well in rehabilitation. I can confirm—his psyche is stable.”

“Limited mobility is not an issue in our project,” added Liz Green. “Besides, he is young and in good health. That is, if you don’t count the missing limbs.”

Continue Reading ...

Запобіжник

Запобіжник

– Цей кандидат був непоганий. – сказав генерал Деніел Ходжес, -Хто наступний?

Наукова співробітниця Ліз Грін натиснула кнопку інтеркому.

– Коул, занесіть файл наступного кандидата, будь ласка.

Секретар Коул ввійшов до кабінету і поставив невеликий файл з документами перед кожним з десяти членів комісії за столом.

Генерал взяв файл в руки і погортав, затримуючись по декілька секунд на сторінці.

– Хм. Цікаво. Український ветеран. Ще й з інвалідністю.  Незвичний вибір.

Керівник групи відбору кандидатів Джек Стоун прокоментував:

– Так. Я співбесідував його особисто. Хлопця порекомендував хірург з нашого центру. Він був волонтером в Україні, оперував поранених. Цей воїн втратив обидві ноги і руку в бою. Але добре тримався на реабілітації. Я можу підтвердити – його психіка стійка.

– Обмежена мобільність не є проблемою в нашому проєкті. – додала Ліз Грін. -Крім того, він молодий, і має добре здоровʼя. Тобто, якщо не рахувати деякі відсутні кінцівки.

Continue Reading ...