MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / run_server

Function run_server

app/api/run.py:27–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27async def run_server():
28 # Start the token cost update task
29 update_tokencosts_task = asyncio.create_task(update_tokencosts_periodically())
30
31 # Configure uvicorn server
32 config = uvicorn.Config(app=app, host="0.0.0.0", port=8000, reload=True, log_level="info")
33
34 # Create and start the server
35 server = uvicorn.Server(config)
36 await server.serve()
37
38 # Wait for the token cost update task
39 await update_tokencosts_task
40
41
42if __name__ == "__main__":

Callers 1

run.pyFile · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…