Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build and deploy AI applications on Azure AI Foundry using Microsoft's model catalog and AI services
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
foundry-agent/create/references/tool-function-calling.md
1# Tool — Function Calling (client-side)23Define custom functions the agent can invoke. Your app executes the function and returns results. Runs expire 10 minutes after creation — return tool outputs promptly.45> **Security:** Treat tool arguments as untrusted input. Don't pass secrets in tool output. Use `strict=True` for schema validation.67> **Not available via toolbox** — function calling executes in the client process, so it's declared on the prompt agent, not in a toolbox version.89## Prompt-agent SDK class1011`FunctionTool` — wraps a Python callable; the SDK introspects its signature and docstring to build the schema sent to the model.1213## References1415- [Function Calling tool documentation](https://learn.microsoft.com/azure/foundry/agents/how-to/tools/function-calling)16- [agent-tools.md](agent-tools.md) — tool index17