Files
agent-framework/schemas/durable-agent-entity-state.json
Dmytro Struk 67a8147151 .NET: Python: Azure Functions feature branch (#1916)
* Python: Add Scaffolding for Durable AzureFunctions package to Agent Framework (#1823)

* Add scafolding

* update readme

* add code owners and label

* update owners

* .NET: Durable extension: initial src and unit tests (#1900)

* Python: Add Durable Agent Wrapper code (#1913)

* add initial changes

* Move code and add single sample

* Update logger

* Remove unused code

* address PR comments

* cleanup code and address comments

---------

Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>

* Azure Functions .NET samples (#1939)

* Python: Add Unit tests for Azurefunctions package (#1976)

* Add Unit tests for Azurefunctions

* remove duplicate import

* .NET: [Feature Branch] Migrate state schema updates and support for agents as MCP tools (#1979)

* Python: Add more samples for Azure Functions (#1980)

* Move all samples

* fix comments

* remove dead lines

* Make samples simpler

* .NET: [Feature Branch] Durable Task extension integration tests (#2017)

* .NET: [Feature Branch] Update OpenAI config for integration tests (#2063)

* Python: Add Integration tests for AzureFunctions  (#2020)

* Add Integration tests

* Remove DTS extension

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add pyi file for type safety

* Add samples in readme

* Updated all readme instructions

* Address comments

* Update readmes

* Fix requirements

* Address comments

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* .NET: [Feature Branch] Update dotnet-build-and-test.yml to support integration tests (#2070)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix DTS startup issue and improve logging (#2103)

* .NET: [Feature Branch] Introduce Azure OpenAI config for .NET pipeline (#2106)

Also fixes an issue where we were trying to start docker containers for integration tests on Windows, which doesn't work.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix uv.lock after merge

* Python: Add README for Azure Functions samples setup (#2100)

* Add README for Azure Functions samples setup

Added setup instructions for Azure Functions samples, including environment setup, virtual environment creation, and running samples.

* Update python/samples/getting_started/azure_functions/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestion from @Copilot

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Laveesh Rohra <larohra@microsoft.com>

* Fix or remove broken markdown file links (#2115)

* .NET: [Feature Branch] Update HTTP API to be consistent across languages (#2118)

* Python: Fix AzureFunctions Integration Tests (#2116)

* Add Identity Auth to samples

* Update python/samples/getting_started/azure_functions/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/samples/getting_started/azure_functions/01_single_agent/function_app.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/samples/getting_started/azure_functions/02_multi_agent/function_app.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/samples/getting_started/azure_functions/06_multi_agent_orchestration_conditionals/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Python: Fix Http Schema (#2112)

* Rename to threadid

* Respond in plain text

* Make snake-case

* Add http prefix

* rename to wait-for-response

* Add query param check

* address comments

* .NET: Remove IsPackable=false in preparation for nuget release (#2142)

* Python: Move `azurefunctions` to `azure` for import (#2141)

* Move import to Azure

* fix mypy

* Update python/packages/azurefunctions/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add missing types

* Address comments

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/packages/azurefunctions/pyproject.toml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update python/packages/azurefunctions/agent_framework_azurefunctions/__init__.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix imports

* Address PR feedback from westey-m (#2150)

- Adds a link from the /dotnet/samples/README.md to /dotnet/samples/AzureFunctions
- Make DurableAgentThread deserialization internal for future-proofing
- Update JSON serialization logic to address recently discovered issues with source generator serialization

* Address comments (#2160)

---------

Co-authored-by: Laveesh Rohra <larohra@microsoft.com>
Co-authored-by: Chris Gillum <cgillum@microsoft.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Anirudh Garg <anirudhg@microsoft.com>
2025-11-13 02:00:53 +00:00

214 lines
8.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/microsoft/agent-framework/schemas/durable-agent-entity-state.json",
"$defs": {
"usage": {
"type": "object",
"description": "Token usage statistics.",
"properties": {
"inputTokenCount": { "type": "integer" },
"outputTokenCount": { "type": "integer" },
"totalTokenCount": { "type": "integer" }
}
},
"dataContent": {
"type": "object",
"description": "The content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "data" },
"uri": { "type": "string", "description": "The URI that comprises the data." },
"mediaType": { "type": "string", "description": "The media type of the data." }
},
"required": ["$type", "uri"]
},
"errorContent": {
"type": "object",
"description": "The error content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "error" },
"message": { "type": "string", "description": "The error message." },
"errorCode": { "type": "string", "description": "The error code." },
"details": { "description": "Additional details about the error." }
},
"required": ["$type"]
},
"hostedFileContent": {
"type": "object",
"description": "The hosted file content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "hostedFile" },
"fileId": { "type": "string", "description": "The identifier of the hosted file." }
},
"required": ["$type", "fileId"]
},
"hostedVectorStoreContent": {
"type": "object",
"description": "The hosted vector store content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "hostedVectorStore" },
"vectorStoreId": { "type": "string", "description": "The identifier of the hosted vector store." }
},
"required": ["$type", "vectorStoreId"]
},
"textReasoningContent": {
"type": "object",
"description": "The reasoning content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "reasoning" },
"text": { "type": "string", "description": "The reasoning text." }
},
"required": ["$type"]
},
"uriContent": {
"type": "object",
"description": "The URI content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "uri" },
"uri": { "type": "string", "description": "The URI." },
"mediaType": { "type": "string", "description": "The media type of the URI." }
},
"required": ["$type", "uri", "mediaType"]
},
"usageContent": {
"type": "object",
"description": "The usage content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "usage" },
"usage": { "$ref": "#/$defs/usage" }
},
"required": ["$type", "usage"]
},
"textContent": {
"type": "object",
"description": "The text content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "text" },
"text": { "type": "string", "description": "The text content of the message." }
},
"required": ["$type", "text"]
},
"functionCallContent": {
"type": "object",
"description": "The function call content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "functionCall" },
"callId": { "type": "string", "description": "The identifier of the function being called." },
"name": { "type": "string", "description": "The name of the function being called." },
"arguments": { "type": "object", "description": "The arguments provided to the function call." }
},
"required": ["$type", "callId", "name"]
},
"functionResultContent": {
"type": "object",
"description": "The function result content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "functionResult" },
"callId": { "type": "string", "description": "The identifier of the function being called." },
"result": { "description": "The result returned by the function call." }
},
"required": ["$type", "callId"]
},
"unknownContent": {
"type": "object",
"description": "The unknown content of a message exchanged with the agent.",
"properties": {
"$type": { "type": "string", "const": "unknown" },
"content": { "description": "The unknown message content serialized as JSON." }
},
"required": ["$type", "content"]
},
"chatContentItem": {
"oneOf": [
{ "$ref": "#/$defs/dataContent" },
{ "$ref": "#/$defs/errorContent" },
{ "$ref": "#/$defs/functionCallContent" },
{ "$ref": "#/$defs/functionResultContent" },
{ "$ref": "#/$defs/hostedFileContent" },
{ "$ref": "#/$defs/hostedVectorStoreContent" },
{ "$ref": "#/$defs/usageContent" },
{ "$ref": "#/$defs/textContent" },
{ "$ref": "#/$defs/textReasoningContent" },
{ "$ref": "#/$defs/uriContent" },
{ "$ref": "#/$defs/unknownContent" }
]
},
"chatMessage": {
"type": "object",
"description": "Single chat message exchanged with the agent.",
"properties": {
"authorName": { "type": "string", "description": "The name of the author of the message." },
"role": { "type": "string", "enum": ["user", "assistant", "system", "tool"] },
"contents": {
"type": "array",
"items": { "$ref": "#/$defs/chatContentItem" }
},
"createdAt": { "type": "string", "format": "date-time", "description": "When this message was created (RFC 3339)." }
},
"required": ["role"]
},
"chatMessages": {
"type": "array",
"description": "Ordered list of chat messages.",
"items": { "$ref": "#/$defs/chatMessage" }
},
"conversationEntry": {
"type": "object",
"properties": {
"createdAt": { "type": "string", "format": "date-time", "description": "When this exchange was created (RFC 3339)." },
"correlationId": { "type": "string", "description": "An optional correlation ID to group related exchanges." },
"messages": { "$ref": "#/$defs/chatMessages" }
}
},
"agentRequest": {
"allOf": [
{ "$ref": "#/$defs/conversationEntry" }
],
"description": "The request (i.e. prompt) sent to the agent.",
"properties": {
"$type": { "type": "string", "const": "request" },
"responseSchema": {
"type": "object",
"description": "If the expected response type is JSON, this schema defines the expected structure of the response."
},
"responseType": {
"type": "string",
"description": "The expected type of the response (e.g., 'text', 'json')."
}
}
},
"agentResponse": {
"allOf": [
{ "$ref": "#/$defs/conversationEntry" }
],
"description": "The response received from the agent.",
"properties": {
"$type": { "type": "string", "const": "response" },
"usage": {
"$ref": "#/$defs/usage"
}
}
},
"data": {
"type": "object",
"description": "The durable agent's state data.",
"properties": {
"conversationHistory": {
"type": "array",
"description": "Ordered list of conversation entries.",
"items": { "$ref": "#/$defs/conversationEntry" }
}
}
}
},
"type": "object",
"properties": {
"schemaVersion": {
"type": "string",
"description": "Semantic version of this state schema. By convention, this should be the first property.",
"pattern": "^\\d+\\.\\d+\\.\\d+$"
},
"data": { "$ref": "#/$defs/data" }
},
"required": ["schemaVersion", "data"]
}