Requirements
To get started, ensure you meet the following requirements:-
Install the AG2 package:
- Run the following command to install the AG2 package:
If you have been usingautogen
orag2
, all you need to do is upgrade it using:orasautogen
andag2
are aliases for the same PyPI package. -
Obtain a DeepSeek API Key:
- Sign up for a DeepSeek account here. to generate your API key.
- Refer to the official documentation for more information about obtaining and using the API key.
Set the config for the DeepSeek API
Next, you need to configure theOAI_CONFIG_LIST
to grant the agent access to the DeepSeek-V3 model.
Here’s an example configuration:
API parameters
You can include additional parameters in your configuration that are supported by the DeepSeek API. For a full list of parameters and their default values, refer to the DeepSeek API documentation. Some examples of such parameters include:- temperature (number 0..1)
- top_p (number 0..1)
- max_tokens (null, integer >= 0)