Antfly · Schema

PostAiV1GenerateContextPrepareRequest

AISearchRetrievalVectorHybrid

Properties

Name Type Description
model string
messages array
tools array
tool_choice string
chat_template_kwargs object
max_tokens integer
mode string
checkpoint object
max_input_tokens integer
keep_recent_turns integer
View JSON Schema on GitHub

JSON Schema

antfly-post-ai-v1-generate-context-prepare-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-post-ai-v1-generate-context-prepare-request-schema.json",
  "title": "PostAiV1GenerateContextPrepareRequest",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/antfly-openapi-generated.yml#/components/schemas/PostAiV1GenerateContextPrepareRequest",
  "type": "object",
  "properties": {
    "model": {
      "type": "string"
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "extra_content": {
            "type": "object"
          },
          "role": {
            "type": "string"
          },
          "content": {
            "type": [
              "string",
              "null"
            ]
          },
          "tool_calls": {
            "type": "array",
            "items": {
              "type": [
                "string",
                "null"
              ]
            }
          },
          "tool_call_id": {
            "type": "string"
          }
        }
      }
    },
    "tools": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "function": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "parameters": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "properties": {
                    "type": "object",
                    "properties": {
                      "location": {
                        "type": "object",
                        "properties": {
                          "type": {},
                          "description": {}
                        }
                      }
                    }
                  },
                  "required": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "strict": {
                "type": "boolean"
              }
            }
          }
        }
      }
    },
    "tool_choice": {
      "type": "string"
    },
    "chat_template_kwargs": {
      "type": "object",
      "properties": {
        "enable_thinking": {
          "type": "boolean"
        }
      }
    },
    "max_tokens": {
      "type": "integer"
    },
    "mode": {
      "type": "string"
    },
    "checkpoint": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        },
        "covered_messages": {
          "type": "integer"
        },
        "covered_prefix_sha256": {
          "type": "string"
        },
        "parent_checkpoint_sha256": {
          "type": "string"
        },
        "memory_sha256": {
          "type": "string"
        },
        "model_revision": {
          "type": "string"
        },
        "tokenizer_revision": {
          "type": "string"
        },
        "template_revision": {
          "type": "string"
        },
        "memory": {
          "type": "object",
          "properties": {
            "conversation": {
              "type": "string"
            },
            "tool_evidence": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "tool_call_id": {
                    "type": "string"
                  },
                  "tool_name": {
                    "type": "string"
                  },
                  "facts": {
                    "type": "string"
                  }
                }
              }
            },
            "unresolved_tool_calls": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "tool_call_id": {
                    "type": "string"
                  },
                  "tool_name": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    },
    "max_input_tokens": {
      "type": "integer"
    },
    "keep_recent_turns": {
      "type": "integer"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/antfly-post-ai-v1-generate-context-prepare-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.