Skip to content

Commit

Permalink
chore: rename endpoint to connect
Browse files Browse the repository at this point in the history
  • Loading branch information
jrriehl committed Dec 19, 2024
1 parent 61aa96a commit 3af292a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions python/src/uagents/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,10 @@ async def _handle_get_info(_ctx: Context):
async def _handle_get_messages(_ctx: Context):
return self._message_cache

@self.on_rest_post("/prove", AgentverseConnectRequest, RegistrationResponse)
async def _handle_prove(_ctx: Context, request: AgentverseConnectRequest):
@self.on_rest_post(
"/connect", AgentverseConnectRequest, RegistrationResponse
)
async def _handle_connect(_ctx: Context, request: AgentverseConnectRequest):
agent_details = (
AgentUpdates(
name=self.name,
Expand Down
2 changes: 1 addition & 1 deletion python/src/uagents/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

HOST = "0.0.0.0"

RESERVED_ENDPOINTS = ["/submit", "/messages", "/agent_info", "/prove"]
RESERVED_ENDPOINTS = ["/submit", "/messages", "/agent_info", "/connect"]


async def _read_asgi_body(receive):
Expand Down

0 comments on commit 3af292a

Please sign in to comment.