如要使用 Vertex AI Agent Engine,您必須先開發可部署在 Vertex AI Agent Engine 上的代理。如要開發代理程式,最簡單的方法就是使用我們提供的架構專屬範本。架構專屬範本會自動處理開發代理程式的一些常見層面,例如序列化物件,以及將初始化代理程式的程式碼與回應提示的程式碼分開。我們提供下列架構專屬範本:
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Develop an agent\n\nOverview\n--------\n\nTo use Vertex AI Agent Engine, you must first develop an agent that can be deployed on Vertex AI Agent Engine. The easiest way to develop an agent is to use one of the framework-specific templates that we provide. Framework-specific templates automatically handle some of the common aspects of developing an agent such as serializing objects and separating the code that initializes an agent from the code that responds to prompts. We provide the following framework-specific templates:\n\nIf your use case doesn't align with one of the framework-specific templates, you can [develop your own custom agent](/vertex-ai/generative-ai/docs/agent-engine/develop/custom).\n\nAgent2Agent (A2A) protocol\n--------------------------\n\nIf you are building a multi-agent system, we highly recommend reviewing the [A2A Protocol](https://a2a-protocol.org/). A2A Protocol is an open standard that enables seamless communication and collaboration between AI agents, regardless of their underlying frameworks. It was [donated by Google Cloud to the Linux Foundation in June 2025](https://developers.googleblog.com/en/google-cloud-donates-a2a-to-linux-foundation/). To use the A2A SDKs, or try out the samples, check out the [GitHub repository](https://github.com/a2aproject/A2A).\n\nWhat's next\n-----------\n\n- [Develop a custom agent](/vertex-ai/generative-ai/docs/agent-engine/develop/custom).\n- [Evaluate an agent](/vertex-ai/generative-ai/docs/agent-engine/evaluate).\n- [Deploy an agent](/vertex-ai/generative-ai/docs/agent-engine/deploy).\n- [Get support](/vertex-ai/generative-ai/docs/agent-engine/support)."]]