Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Copyright (c) Microsoft. All rights reserved.

"""Constants for Azure Functions Agent Framework integration."""
"""Constants for Azure Functions Agent Framework integration.

This module contains runtime configuration constants (polling, MIME types, headers)
and API response field names.
"""

from typing import Final

# Supported request/response formats and MIME types
REQUEST_RESPONSE_FORMAT_JSON: str = "json"
Expand All @@ -17,3 +23,15 @@
# Polling configuration
DEFAULT_MAX_POLL_RETRIES: int = 30
DEFAULT_POLL_INTERVAL_SECONDS: float = 1.0


class ApiResponseFields:
"""Field names for HTTP API responses (not part of persisted schema).

These are used in try_get_agent_response() for backward compatibility
with the HTTP API response format.
"""

CONTENT: Final[str] = "content"
MESSAGE_COUNT: Final[str] = "message_count"
CORRELATION_ID: Final[str] = "correlationId"
Loading
Loading