Show server version in logs and UI

This commit is contained in:
Brandon Zhang
2026-03-27 18:16:30 +08:00
parent 8d4392ee5a
commit 7a8dd14bd3
11 changed files with 34 additions and 7 deletions

View File

@@ -11,6 +11,7 @@ from datetime import datetime, timezone
from fastapi import APIRouter
from fastapi.responses import StreamingResponse
from app.config import APP_VERSION
from app.models import (
AgentInfo,
HealthResponse,
@@ -49,6 +50,7 @@ def get_status():
server=ServerInfo(
status="up",
started_at=status_service.server_started_at(),
version=APP_VERSION,
),
agent=agent_info,
queue=QueueCounts(**counts),

View File

@@ -9,6 +9,7 @@ import os
from dataclasses import dataclass, field
APP_VERSION = "1.0.0"
DEFAULT_EMPTY_RESPONSE = "call this tool `get_user_request` again to fetch latest user input..."

View File

@@ -79,6 +79,7 @@ class UpdateInstructionRequest(BaseModel):
class ServerInfo(BaseModel):
status: str
started_at: datetime
version: str
class AgentInfo(BaseModel):