Microsoft Agent Framework connector: targeted version and verified APIs¶
Package: agent-framework-core (published by Microsoft). Targeted: 1.26.0 (extra
credencestack[msaf], pinned >=1.26,<2). Python only; .NET is on the roadmap. Checked
against the installed source on 2026-11-22.
The plan named agent-framework. That is a meta-package that depends on
agent-framework-core[all], which pulls every Azure and provider integration, some of
them pre-releases that do not resolve. The extra installs agent-framework-core only;
add a provider package (for example agent-framework-openai) for real models.
APIs used, as found in 1.26.0¶
| Need | API in 1.26.0 | Where |
|---|---|---|
| Agent | agent_framework.Agent(client, instructions, name=, tools=, middleware=); agent.create_session(); await agent.run(messages, session=, middleware=) |
agent_framework/_agents.py |
| Native tools | FunctionTool(name=, description=, func=, input_model=<JSON Schema dict>, approval_mode=) |
agent_framework/_tools.py |
| Events | per-run ChatMiddleware (process(context: ChatContext, call_next), context.result is the ChatResponse) and FunctionMiddleware (FunctionInvocationContext) passed to agent.run(middleware=...) |
agent_framework/_middleware.py |
| Stop | MiddlewareTermination ends the function-calling loop; a chat middleware may set context.result instead of calling the model |
_middleware.py |
| Approvals | approval_mode="always_require"; the run returns function_approval_request contents in response.user_input_requests; answer with request.to_function_approval_response(approved=...) in a user Message on the same session |
_tools.py, _types.py |
| Conditional approval | ToolApprovalMiddleware(auto_approval_rules=[callback]) auto-approves calls the callback accepts |
agent_framework/_harness/_tool_approval.py |
| Offline model | a BaseChatClient subclass with FunctionInvocationLayer and ChatMiddlewareLayer, implementing _inner_get_response |
agent_framework/_clients.py, _tools.py |
Differences from the plan's hints¶
- Approval-required functions exist (
approval_mode), but only as always or never. "Above the limit" needsToolApprovalMiddleware's auto-approval rules, which the safe example uses. - Workflows and checkpoints: the connector drives
Agentonly.WorkflowAgent, workflow events and checkpoints are not recorded in v1 (roadmap). - Model calls are recorded by the per-run chat middleware. It runs inside the chat
client's middleware layer, which the scripted client and the framework's provider
clients have; a third-party client without
ChatMiddlewareLayerwould not recordmodel_callevents. - Real models: the examples'
make_clientusesagent_framework.openai.OpenAIChatClientfromagent-framework-openai, which is not installed here; its constructor arguments are TODO-verify.