MCPcopy
hub / github.com/Agenta-AI/agenta / fetch_project_by_id

Function fetch_project_by_id

api/oss/src/services/db_manager.py:59–75  ·  view source on GitHub ↗
(
    project_id: str,
)

Source from the content-addressed store, hash-verified

57
58
59async def fetch_project_by_id(
60 project_id: str,
61) -> ProjectDB:
62 async with engine.core_session() as session:
63 project = (
64 (
65 await session.execute(
66 select(ProjectDB).filter_by(
67 id=uuid.UUID(project_id),
68 )
69 )
70 )
71 .scalars()
72 .first()
73 )
74
75 return project
76
77
78async def add_testset_to_app_variant(

Callers 3

delete_invitationFunction · 0.85

Calls 1

core_sessionMethod · 0.80

Tested by

no test coverage detected