<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bipin Budhathoki</title>
    <description>The latest articles on DEV Community by Bipin Budhathoki (@bipin_budhathoki).</description>
    <link>https://dev.to/bipin_budhathoki</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4238966%2Fe898b596-932d-48ce-b9de-0f7bc57053dd.jpg</url>
      <title>DEV Community: Bipin Budhathoki</title>
      <link>https://dev.to/bipin_budhathoki</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bipin_budhathoki"/>
    <language>en</language>
    <item>
      <title>Introducing aip-lang: Compiling Declarative Prompt Contracts into Standalone PHP and Python</title>
      <dc:creator>Bipin Budhathoki</dc:creator>
      <pubDate>Wed, 11 Nov 2026 11:29:54 +0000</pubDate>
      <link>https://dev.to/bipin_budhathoki/introducing-aip-lang-compiling-declarative-prompt-contracts-into-standalone-php-and-python-f0a</link>
      <guid>https://dev.to/bipin_budhathoki/introducing-aip-lang-compiling-declarative-prompt-contracts-into-standalone-php-and-python-f0a</guid>
      <description>&lt;h3&gt;
  
  
  Why Another AI Tool?
&lt;/h3&gt;

&lt;p&gt;Most AI engineering tools (LangChain, LlamaIndex, DSPy) assume two things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You want heavy runtime abstractions wrapping your entire application.&lt;/li&gt;
&lt;li&gt;Your backend is strictly Python or TypeScript.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your web stack is built on PHP (Laravel, Symfony, WordPress) or you simply want clean, version-controlled prompt templates without hundreds of third-party dependencies, your options are limited.&lt;/p&gt;




&lt;h3&gt;
  
  
  What is aip-lang?
&lt;/h3&gt;

&lt;p&gt;&lt;code&gt;aip-lang&lt;/code&gt; is an open-source domain-specific language (DSL) and compiler for typed LLM prompts. It treats prompt templates as version-controlled software contracts.&lt;/p&gt;

&lt;h4&gt;
  
  
  Example Contract (&lt;code&gt;support_ticket.aiprompt&lt;/code&gt;):
&lt;/h4&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;system:
    You are an automated support classifier. Extract details strictly.
user:
    Customer Message: {{ $message }}
generate as TicketAssessment {
    model: "gemini-2.5-flash",
    temperature: 0.1,
    schema: {
        summary: string,
        urgent: bool,
        tags: list[string]
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Key Capabilities
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Lark AST Parser: Parses instructions, variable slots, and schema definitions into a structured AST.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PHP 8.1+ Code Generation: Generates native PHP classes that handle HTTP transport, payload formatting, and schema validation with zero external Composer packages.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Python Target: Generates Pydantic-backed classes with dynamic type enforcement.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Multi-Provider: Direct API integration with Google Gemini, Anthropic Claude, and OpenAI.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Developer Tooling: Includes a CLI (aip check, aip compile, aip schema) and an offline React-based playground.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try It Out
&lt;/h2&gt;

&lt;p&gt;GitHub Repository: &lt;a href="https://github.com/BipinBudhathoki0/aip-lang" rel="noopener noreferrer"&gt;https://github.com/BipinBudhathoki0/aip-lang&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Installation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/BipinBudhathoki0/aip-lang.git
&lt;span class="nb"&gt;cd&lt;/span&gt; aip-lang
pip install -e .
aip check examples/examiner.aiprompt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>ai</category>
      <category>webdev</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
