diff --git a/docs/swarms_cloud/agent_api.md b/docs/swarms_cloud/agent_api.md index 44a819c8..cd7916fc 100644 --- a/docs/swarms_cloud/agent_api.md +++ b/docs/swarms_cloud/agent_api.md @@ -29,7 +29,7 @@ This endpoint returns a list of available model names. It is useful for clients ```python import requests -response = requests.get("http://localhost:8000/v1/models") +response = requests.get("http://api.swarms.world/v1/models") print(response.json()) ``` @@ -41,6 +41,8 @@ print(response.json()) **Response Model:** `AgentOutput` +**URL:** `http://api.swarms.world/v1/agent/completions` + **Description:** This endpoint handles the completion request for an agent configured with the given input parameters. It processes the request and returns the completion results. @@ -139,7 +141,7 @@ class AgentInput(BaseModel): task: str = None agent_input = AgentInput(task="Generate a summary of the provided text.") -response = requests.post("http://localhost:8000/v1/agent/completions", json=agent_input.dict()) +response = requests.post("http://api.swarms.world/v1/agent/completions", json=agent_input.dict()) print(response.json()) ```