File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
agent_framework_foundry_local
samples/getting_started/agents/foundry_local Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- # Get Started with Microsoft Agent Framework Foundry
1+ # Get Started with Microsoft Agent Framework Foundry Local
22
33Please install this package as the extra for ` agent-framework ` :
44
55``` bash
6- pip install agent-framework[ foundry]
6+ pip install agent-framework- foundry-local --pre
77```
88
99and see the [ README] ( https://github.com/microsoft/agent-framework/tree/main/python/README.md ) for more information.
Original file line number Diff line number Diff line change 1818class FoundryLocalSettings (AFBaseSettings ):
1919 """Foundry local model settings.
2020
21- The settings are first loaded from environment variables with the prefix 'FOUNDRY_ '.
21+ The settings are first loaded from environment variables with the prefix 'FOUNDRY_LOCAL_ '.
2222 If the environment variables are not found, the settings can be loaded from a .env file
2323 with the encoding 'utf-8'. If the settings are not found in the .env file, the settings
2424 are ignored; however, validation will fail alerting that the settings are missing.
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ exclude_dirs = ["tests"]
7979executor.type = " uv"
8080include = " ../../shared_tasks.toml"
8181[tool .poe .tasks ]
82- mypy = " mypy --config-file $POE_ROOT/pyproject.toml agent_framework_foundry "
82+ mypy = " mypy --config-file $POE_ROOT/pyproject.toml agent_framework_foundry_local "
8383test = " pytest --cov=agent_framework_foundry_local --cov-report=term-missing:skip-covered tests"
8484
8585[build-system ]
Original file line number Diff line number Diff line change 77from agent_framework_foundry_local import FoundryLocalChatClient
88
99"""
10- This samples demonstrates basic usage of FoundryLocalChatClient.
10+ This sample demonstrates basic usage of the FoundryLocalChatClient.
1111Shows both streaming and non-streaming responses with function tools.
1212
1313Running this sample the first time will be slow, as the model needs to be
@@ -40,7 +40,7 @@ async def non_streaming_example(client: FoundryLocalChatClient) -> None:
4040 instructions = "You are a helpful agent." ,
4141 tools = get_weather ,
4242 )
43- query = "Whats the weather like in Seattle?"
43+ query = "What's the weather like in Seattle?"
4444 print (f"User: { query } " )
4545 result = await agent .run (query )
4646 print (f"Agent: { result } \n " )
@@ -55,7 +55,7 @@ async def streaming_example(client: FoundryLocalChatClient) -> None:
5555 instructions = "You are a helpful agent." ,
5656 tools = get_weather ,
5757 )
58- query = "Whats the weather like in Amsterdam?"
58+ query = "What's the weather like in Amsterdam?"
5959 print (f"User: { query } " )
6060 print ("Agent: " , end = "" , flush = True )
6161 async for chunk in agent .run_stream (query ):
You can’t perform that action at this time.
0 commit comments