mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
17 lines
533 B
Python
17 lines
533 B
Python
"""Register the adapter through Microsoft Agent Framework's native option."""
|
|
|
|
from agent_framework import BaseAgent
|
|
from copilotkit import AsyncCopilotKitIntelligence
|
|
from copilotkit_intelligence_agent_framework import SkillRegistryContextProvider
|
|
|
|
|
|
copilotkit_client = AsyncCopilotKitIntelligence(
|
|
api_key="...",
|
|
project_namespace="my-project",
|
|
)
|
|
provider = SkillRegistryContextProvider(
|
|
copilotkit_client,
|
|
"55555555-5555-4555-8555-555555555555",
|
|
)
|
|
agent = BaseAgent(name="assistant", context_providers=[provider])
|