Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Add code snippet showing how to call agent endpoint
Vasek Mlejnskyd6555c3b7687
diff --git a/components/Editor/Sidebar/Deploy.tsx b/components/Editor/Sidebar/Deploy.tsxindex 97dfbc329..8988dec77 100644--- a/components/Editor/Sidebar/Deploy.tsx+++ b/components/Editor/Sidebar/Deploy.tsx@@ -131,11 +131,16 @@ function Deploy({ project }: Props) {}</div>{deployment && deployment['config'] && baseDeploymentURL &&- <div>- <Text- text="Example usage"- />- <pre className="+ <div className="+ flex+ flex-col+ space-y-2+ ">+ <div>+ <Text+ text="Example usage"+ />+ <pre className="p-2roundedfont-mono@@ -143,9 +148,9 @@ function Deploy({ project }: Props) {bg-slate-100overflow-auto">- <code>- {`curl --request POST \\- --url ${baseDeploymentURL} \\+ <code>+ {`curl --request POST \\+ --url ${baseDeploymentURL}/interactions \\--data '{"type": "start","data": {@@ -155,8 +160,27 @@ function Deploy({ project }: Props) {}}}'`}- </code>- </pre>+ </code>+ </pre>+ </div>+ <div>+ <Text+ text="Agent logs"+ />+ <pre className="+ p-2+ rounded+ font-mono+ text-xs+ bg-slate-100+ overflow-auto+ ">+ <code>+ {`curl --request GET \\+ --url ${baseDeploymentURL}/logs`}+ </code>+ </pre>+ </div></div>}</div>