<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Model interaction on AI Tools</title>
    <link>https://ait.bsc.es/handbook/model-interaction/</link>
    <description>Recent content in Model interaction on AI Tools</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="https://ait.bsc.es/handbook/model-interaction/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>OpenAI-compatible API</title>
      <link>https://ait.bsc.es/handbook/model-interaction/openai-compatible-api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/openai-compatible-api/</guid>
      <description>&lt;p&gt;A large share of inference servers and client libraries speak an OpenAI-compatible HTTP&#xA;API. Treating it as a portability layer is usually right, but compatibility is a&#xA;spectrum rather than a guarantee.&lt;/p&gt;&#xA;&lt;p&gt;This page describes the surface conceptually. For the endpoints exposed by this team&amp;rsquo;s&#xA;service, see the LLM Inference module User Guide.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Which endpoints make up the commonly implemented core of the API.&lt;/li&gt;&#xA;&lt;li&gt;How chat completions differ from the older text completion shape.&lt;/li&gt;&#xA;&lt;li&gt;How streaming responses are delivered and consumed.&lt;/li&gt;&#xA;&lt;li&gt;Where compatible implementations tend to diverge in practice.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Anthropic-compatible API</title>
      <link>https://ait.bsc.es/handbook/model-interaction/anthropic-compatible-api/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/anthropic-compatible-api/</guid>
      <description>&lt;p&gt;Some inference servers expose an Anthropic-compatible Messages API alongside or instead&#xA;of an OpenAI-compatible one. The two express similar capabilities with different request&#xA;structures, and the differences matter when writing portable clients.&lt;/p&gt;&#xA;&lt;p&gt;This page covers the shape conceptually; the service-specific details are in the &lt;code&gt;llm- inference&lt;/code&gt; user guide.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The structure of a Messages API request and response.&lt;/li&gt;&#xA;&lt;li&gt;How system prompts and message roles are represented.&lt;/li&gt;&#xA;&lt;li&gt;How tool use is expressed compared with the OpenAI-compatible surface.&lt;/li&gt;&#xA;&lt;li&gt;What to account for when supporting both APIs from one client.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Function calling</title>
      <link>https://ait.bsc.es/handbook/model-interaction/function-calling/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/function-calling/</guid>
      <description>&lt;p&gt;Function calling lets a model return a structured request to invoke a tool rather than a&#xA;direct answer. It is the mechanism underneath most agent architectures, and the point&#xA;where model output starts to have side effects.&lt;/p&gt;&#xA;&lt;p&gt;That makes both the schema design and the validation of the model&amp;rsquo;s requests security-&#xA;relevant, not merely functional.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;How a function-calling exchange proceeds, turn by turn.&lt;/li&gt;&#xA;&lt;li&gt;How to describe tools so a model uses them correctly.&lt;/li&gt;&#xA;&lt;li&gt;Why every tool call must be validated before execution.&lt;/li&gt;&#xA;&lt;li&gt;How multi-step tool use composes into agent behaviour.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Structured outputs</title>
      <link>https://ait.bsc.es/handbook/model-interaction/structured-outputs/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/structured-outputs/</guid>
      <description>&lt;p&gt;Asking a model to reply in JSON and hoping for the best does not survive production&#xA;traffic. Structured output support constrains generation so the result conforms to a&#xA;schema by construction.&lt;/p&gt;&#xA;&lt;p&gt;This page covers the available approaches and their costs.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The difference between prompting for a format and constraining generation to it.&lt;/li&gt;&#xA;&lt;li&gt;How grammar and schema-constrained decoding work at a high level.&lt;/li&gt;&#xA;&lt;li&gt;What constrained decoding costs in latency and flexibility.&lt;/li&gt;&#xA;&lt;li&gt;How to handle the cases a schema cannot express.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Model Context Protocol</title>
      <link>https://ait.bsc.es/handbook/model-interaction/model-context-protocol/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/model-context-protocol/</guid>
      <description>&lt;p&gt;The Model Context Protocol standardises how a model-facing application connects to tools&#xA;and data sources, so that integrations can be written once and reused across clients&#xA;rather than rebuilt per application.&lt;/p&gt;&#xA;&lt;p&gt;This page introduces the concepts and where MCP fits relative to plain function calling.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What problem MCP standardises, and for whom.&lt;/li&gt;&#xA;&lt;li&gt;The roles of host, client and server in the protocol.&lt;/li&gt;&#xA;&lt;li&gt;How MCP relates to and differs from direct function calling.&lt;/li&gt;&#xA;&lt;li&gt;What to consider before exposing internal systems through an MCP server.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Prompt engineering</title>
      <link>https://ait.bsc.es/handbook/model-interaction/prompt-engineering/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/prompt-engineering/</guid>
      <description>&lt;p&gt;Prompt engineering has a poor reputation earned by folklore, but the underlying practice&#xA;is ordinary engineering: change one thing, measure the effect on a fixed evaluation set,&#xA;keep what works.&lt;/p&gt;&#xA;&lt;p&gt;This page focuses on techniques that survive that treatment, and on the evaluation&#xA;discipline that makes the difference.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Which prompt structures reliably improve task performance.&lt;/li&gt;&#xA;&lt;li&gt;How to build an evaluation set before tuning prompts.&lt;/li&gt;&#xA;&lt;li&gt;How prompt length interacts with latency and cost.&lt;/li&gt;&#xA;&lt;li&gt;Why prompts should be versioned like any other production artifact.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
    <item>
      <title>LLM inference parameters</title>
      <link>https://ait.bsc.es/handbook/model-interaction/llm-inference-parameters/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>https://ait.bsc.es/handbook/model-interaction/llm-inference-parameters/</guid>
      <description>&lt;p&gt;Temperature, top-p, penalties and stop sequences change generation behaviour&#xA;substantially, and are often set by copying values from an unrelated example. Each one&#xA;has a specific effect that is worth understanding directly.&lt;/p&gt;&#xA;&lt;p&gt;This page explains what each parameter does and how they interact.&lt;/p&gt;&#xA;&lt;h2 id=&#34;what-you-will-learn&#34;&gt;What you will learn&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;What each common sampling parameter controls.&lt;/li&gt;&#xA;&lt;li&gt;How temperature and nucleus sampling interact.&lt;/li&gt;&#xA;&lt;li&gt;When deterministic decoding is appropriate and what it does not guarantee.&lt;/li&gt;&#xA;&lt;li&gt;How token limits and stop sequences bound a response.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;recommended-outline&#34;&gt;Recommended outline&lt;/h2&gt;&#xA;&lt;p&gt;This page is an outline. The subsections below are the planned structure;&#xA;they are filled in as the handbook is written.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
