---
title: "ImprovePromptForAgent"
method: POST
path: "/gitpod.v1.AgentService/ImprovePromptForAgent"
tags: ["gitpod.v1.AgentService"]
---

# ImprovePromptForAgent

`POST /gitpod.v1.AgentService/ImprovePromptForAgent`

Improves an agent's prompt.

 Use this method to:
 - Enhance the agent's understanding of the user's request
 - Refine the agent's response to be more accurate and relevant

## Request body

- GitpodV1ImprovePromptForAgentRequest
  - `agentId` string, uuid
  - `prompt` string

## Response `200`

Success

- GitpodV1ImprovePromptForAgentResponse
  - `improvedPrompt` string

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/versions/44d50c2ac284/schema)
