liveBook · Manning

Language model

As explained in Automating API Delivery

A large language model is a machine-learning model trained on extensive text data to generate and transform natural-language or code-based content.

A large language model (LLM) is an AI model trained on massive datasets to generate human-like responses. Deep-learning techniques such as transformers help it understand contextual relationships, syntax, and semantics, enabling content generation, translation, and conversation. section 3.10

In software development, an LLM can:

  • Power AI coding assistants that analyze code, generate functions, suggest completions, and propose bug fixes. section 3.10
  • Apply natural-language rules to OpenAPI documents and report linting violations that traditional rules may not easily express. section 3.11
  • Reduce the cost and time of checking changed files, while leaving developers responsible for testing and reviewing generated results. section 3.10 section 3.11

OpenAPI monetary-field linting

Upload an OpenAPI document to Claude and ask it to find response properties whose names imply monetary amounts. It identifies cost_price, selling_price, and vat_amount, then reports that each is incorrectly defined as type: string rather than type: number. The same natural-language rules can run through Optic’s LintGPT in a CI/CD pipeline. section 3.11.1 section 3.11.2

Lint the OpenAPI document based on the following rule:
- If a property’s name implies it is a monetary amount, 
 it must use number format. Show me the linting rule violations. 
 An example of a violation can be: “The property ‘cost_price’ 
 implies a monetary amount but is defined with 'type: string'. 
 It should be defined with 'type: number' to accurately 
 represent a monetary value."

Shows the natural-language linting prompt used to check monetary property names and required number formats. section 3.11.1

How Automating API Delivery covers it

How deep it goes
Explains training, transformers, language capabilities, and linting workflows, but defers model internals and requires output validation.
Examples
Uses coding assistants, Claude prompts, monetary OpenAPI properties, pagination checks, and Optic LintGPT configuration.
What it assumes
Assumes an OpenAPI document and a stated rule, while explaining LLMs from natural-language processing and transformer foundations.
What you can do after
Apply it via Anthropic Claude or Optic’s LintGPT to generate code suggestions or lint OpenAPI documents with natural-language rules.
How it connects
Connects natural language processing, transformers, AI coding assistants, API linting, OpenAPI, Spectral, and CI/CD pipelines.

Also explained in

Compare how 67 books explain language model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Automating API Delivery. The section links point to the parts of the book it draws on.