# Update the AI Agent

All the configurations in the AI Agent's [config.yaml](/ai-agents/getting-started.md#creating-the-project-bootstrap) file along with the AI agent's container image can be updated using the `gru agent update` command.

To update the configurations in the `config.yaml` file, make the changes in the file and execute the following command:

```bash
gru agent update .
```

To update the container image of the AI Agent, execute the following command:

```
gru agent update . --image=<new_image>
```

**Note:** `.` represents the context path of the AI Agent folder. Use the path of the AI agent folder if the command is being executed from a different directory.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.canso.ai/ai-agents/how-tos/update-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
