function calling
AI, ML & GenAI interview questions tagged function calling, across every topic.
7 questions · 1 unlocked for you
Concepts behind "function calling"
The curriculum that explains the ideas these questions test.
Foundational
Agents and Tool UseAn agent is an LLM in a loop that can take actions through tools: it reasons, calls a tool (search, a database, code, an API), observes the result, and loops until finished. Tool calling works because the model emits a structured request that your code executes, the model itself never runs anything. The upside is doing real work; the cost is reliability and the safety surface (an agent that can act can act wrongly). Applied-AI interviews cover it because agents are where LLMs meet real systems.🤖 Retrieval & Agents
Core
Constrained and Structured DecodingAsking a model nicely for JSON sometimes fails; constrained decoding guarantees valid output by masking, at each generation step, every token that would break a schema or grammar, so only valid continuations can be sampled. It is the dependable way to get JSON, enums, or function-call arguments, and it underpins tool calling. The caveat: it guarantees structural validity, not semantic correctness. AI, ML, and GenAI engineer interviews probe it because production systems depend on parseable output, and 'just prompt for JSON' breaks at scale.🧠 Foundations of LLMs & GenAISign in
Core
Function Calling and Tool SchemasTool use runs on a function-calling protocol: you declare each tool as a JSON schema, the model returns a structured call (name plus arguments) that your code checks and executes, and the result flows back into the conversation. Design is what's hard, not the wiring: how you write tool descriptions and shape results governs whether the model reaches for the correct tool with correct arguments, and pinning output to a schema can shave a measurable slice off accuracy. Applied-AI interviews test it because schema design is where most agents fail without anyone noticing.🤖 Retrieval & AgentsSign in
Core
Model Context Protocol (MCP)MCP is an open client-server standard that connects an agent to external tools, data, and prompts through one uniform interface, so a single integration serves many hosts instead of bespoke glue written per model. Servers publish tools, resources, and prompts with typed schemas; clients discover and invoke them at runtime. Applied AI interviews test it because what usually keeps an agent from shipping is integration plumbing rather than model quality.🤖 Retrieval & AgentsSign in
