> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.credal.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.credal.com/_mcp/server.

# setAgentModel

GraphQL MUTATION

Points an agent at a model. The model decides the runtime the agent runs on.

Reference: https://docs.credal.com/api-reference/mutations/set-agent-model

## GraphQL Schema

```graphql
mutation ExampleMutation($request: SetAgentModelRequest!) {
  setAgentModel(request: $request)
}
```

## Variables

```json
{
  "request": {
    "agentId": "example",
    "agentModelId": "example"
  }
}
```