You can use third-party agent SDKs in Code Repositories to build agents backed by a large language model (LLM). A pro-code agent is custom logic written in a Foundry code repository and published as a Foundry function. The agent can reason over a prompt and call tools that read and write data in your environment. Supported third-party agent SDKs include the Claude Agent SDK, OpenAI Agents SDK, and Google ADK.
Pro-code agents can accomplish tasks such as reading and writing Ontology data, building platform resources, and migrating legacy systems. For more ways to use pro-code agents, see the use cases documentation.
Pro-code agents authenticate against the Ontology SDK (OSDK), Ontology MCP (OMCP), and Palantir MCP with scoped permissions out of the box. You do not need to pass a client ID and secret to call tools. After you publish a pro-code agent, you can call it from Workshop or the Ontology SDK without any additional configuration.
A pro-code agent is defined in a code repository created from an agent template. The template includes:
When you publish the agent, Foundry registers it with an Ontology binding and an agent API name. The published agent is exposed as an asynchronous function. We recommend triggering agents from Automate, but you can also call them from Workshop, the Ontology SDK, and Ontology actions.