mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Small fixes in documentation
This commit is contained in:
@@ -31,7 +31,7 @@ The following environment variables are used for configuration:
|
||||
|
||||
```python
|
||||
import asyncio
|
||||
from agent_framework_copilotstudio import CopilotStudioAgent
|
||||
from agent_framework.copilotstudio import CopilotStudioAgent
|
||||
|
||||
async def main():
|
||||
# Create agent using environment variables
|
||||
@@ -49,7 +49,7 @@ asyncio.run(main())
|
||||
```python
|
||||
import asyncio
|
||||
import os
|
||||
from agent_framework_copilotstudio import CopilotStudioAgent, acquire_token
|
||||
from agent_framework.copilotstudio import CopilotStudioAgent, acquire_token
|
||||
from microsoft_agents.copilotstudio.client import ConnectionSettings, CopilotClient, PowerPlatformCloud, AgentType
|
||||
|
||||
async def main():
|
||||
|
||||
@@ -45,7 +45,7 @@ Your Azure AD App Registration should have:
|
||||
### Basic Usage with Environment Variables
|
||||
|
||||
```python
|
||||
from agent_framework_copilotstudio import CopilotStudioAgent
|
||||
from agent_framework.copilotstudio import CopilotStudioAgent
|
||||
|
||||
# Uses environment variables for configuration
|
||||
agent = CopilotStudioAgent()
|
||||
@@ -55,7 +55,7 @@ result = await agent.run("What is the capital of France?")
|
||||
### Explicit Configuration
|
||||
|
||||
```python
|
||||
from agent_framework_copilotstudio import CopilotStudioAgent, acquire_token
|
||||
from agent_framework.copilotstudio import CopilotStudioAgent, acquire_token
|
||||
from microsoft_agents.copilotstudio.client import ConnectionSettings, CopilotClient, PowerPlatformCloud, AgentType
|
||||
|
||||
# Acquire token manually
|
||||
|
||||
Reference in New Issue
Block a user