mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: [BREAKING]: removed display_name, renamed context_providers, middleware and AggregateContextProvider (#3139)
* removed display_name, renamed context_providers, middleware and AggregateContextProvider * fixes * fixed test * testfix * removed mistakenly put back test * updated new test * rename middlewares to middleware * middleware fixes
This commit is contained in:
committed by
GitHub
Unverified
parent
ef44fb4960
commit
203fb7b1c4
@@ -99,7 +99,7 @@ def main():
|
||||
"You are a helpful support specialist for Contoso Outdoors. "
|
||||
"Answer questions using the provided context and cite the source document when available."
|
||||
),
|
||||
context_providers=TextSearchContextProvider(),
|
||||
context_provider=TextSearchContextProvider(),
|
||||
)
|
||||
|
||||
# Run the agent as a hosted agent
|
||||
|
||||
@@ -189,7 +189,7 @@ def create_app(config: AppConfig) -> web.Application:
|
||||
web.Application: Fully initialized web application.
|
||||
"""
|
||||
middleware_fn = build_anonymous_claims_middleware(config.use_anonymous_mode)
|
||||
app = web.Application(middlewares=[middleware_fn])
|
||||
app = web.Application(middleware=[middleware_fn])
|
||||
|
||||
storage = MemoryStorage()
|
||||
agent = build_agent()
|
||||
|
||||
Reference in New Issue
Block a user