style: format code for improved readability and consistency across multiple files
This commit is contained in:
@@ -155,8 +155,7 @@ def _agent_board_openapi_hints(
|
||||
"Authenticated agent token",
|
||||
"Board access is validated before execution",
|
||||
],
|
||||
"x-side-effects": side_effects
|
||||
or ["Read/write side effects vary by endpoint semantics."],
|
||||
"x-side-effects": side_effects or ["Read/write side effects vary by endpoint semantics."],
|
||||
"x-negative-guidance": negative_guidance
|
||||
or ["Avoid this endpoint when a focused sibling endpoint handles the action."],
|
||||
"x-routing-policy": routing_policy
|
||||
@@ -525,7 +524,10 @@ async def list_tags(
|
||||
"description": "Caller is not board lead",
|
||||
},
|
||||
404: {"model": LLMErrorResponse, "description": "Assigned target agent does not exist"},
|
||||
409: {"model": LLMErrorResponse, "description": "Dependency or assignment validation failed"},
|
||||
409: {
|
||||
"model": LLMErrorResponse,
|
||||
"description": "Dependency or assignment validation failed",
|
||||
},
|
||||
422: {"model": LLMErrorResponse, "description": "Payload validation failed"},
|
||||
},
|
||||
openapi_extra={
|
||||
|
||||
@@ -577,7 +577,9 @@ async def stream_board_group_memory_for_board(
|
||||
"decision": "agent_board_group_memory_record",
|
||||
}
|
||||
],
|
||||
side_effects=["Persist new group-memory entries with optional agent notification dispatch."],
|
||||
side_effects=[
|
||||
"Persist new group-memory entries with optional agent notification dispatch."
|
||||
],
|
||||
routing_policy=[
|
||||
"Use for shared memory writes that should be visible across linked boards.",
|
||||
"Prefer direct board memory endpoints for board-local persistence.",
|
||||
|
||||
@@ -6,8 +6,8 @@ from contextlib import asynccontextmanager
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
from fastapi import APIRouter, FastAPI, status
|
||||
from fastapi.openapi.utils import get_openapi
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.openapi.utils import get_openapi
|
||||
from fastapi_pagination import add_pagination
|
||||
|
||||
from app.api.activity import router as activity_router
|
||||
@@ -397,7 +397,9 @@ def _inject_tagged_operation_openapi_docs(openapi_schema: dict[str, Any]) -> Non
|
||||
continue
|
||||
response_content = response.get("content")
|
||||
if isinstance(response_content, dict):
|
||||
_inject_json_content_example(content=response_content, components=components)
|
||||
_inject_json_content_example(
|
||||
content=response_content, components=components
|
||||
)
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
|
||||
@@ -8,8 +8,8 @@ from typing import Any
|
||||
from uuid import UUID
|
||||
|
||||
from pydantic import Field, field_validator
|
||||
from sqlmodel._compat import SQLModelConfig
|
||||
from sqlmodel import SQLModel
|
||||
from sqlmodel._compat import SQLModelConfig
|
||||
|
||||
from app.schemas.common import NonEmptyStr
|
||||
|
||||
|
||||
@@ -31,7 +31,10 @@ class LLMErrorResponse(SQLModel):
|
||||
"Error payload. Agents should rely on `code` when present and default "
|
||||
"to `message` for fallback display."
|
||||
),
|
||||
examples=["Invalid payload for lead escalation.", {"code": "not_found", "message": "Agent not found."}],
|
||||
examples=[
|
||||
"Invalid payload for lead escalation.",
|
||||
{"code": "not_found", "message": "Agent not found."},
|
||||
],
|
||||
)
|
||||
request_id: str | None = Field(
|
||||
default=None,
|
||||
|
||||
@@ -6,8 +6,8 @@ from typing import Literal
|
||||
from uuid import UUID
|
||||
|
||||
from pydantic import Field
|
||||
from sqlmodel._compat import SQLModelConfig
|
||||
from sqlmodel import SQLModel
|
||||
from sqlmodel._compat import SQLModelConfig
|
||||
|
||||
from app.schemas.common import NonEmptyStr
|
||||
|
||||
|
||||
@@ -13,4 +13,3 @@ class HealthStatusResponse(SQLModel):
|
||||
description="Indicates whether the probe check succeeded.",
|
||||
examples=[True],
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user