A programming framework for agentic AI
model capabilities FAQ (#4471)
peterychangb286c99c1f69
diff --git a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynbindex dc521efa5..b2acbd6d1 100644--- a/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb+++ b/python/packages/autogen-core/docs/src/user-guide/agentchat-user-guide/tutorial/models.ipynb@@ -157,7 +157,9 @@"source": ["## Local Models\n","\n",- "We are working on it. Stay tuned!"+ "See [this guide](../../core-user-guide/faqs.md#what-are-model-capabilities-and-how-do-i-specify-them) for how to override a model's default capabilities definitions in autogen.\n",+ "\n",+ "More to come. Stay tuned!"]}],diff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.md b/python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.mdindex 9a63a9c0b..fd77f3bce 100644--- a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.md+++ b/python/packages/autogen-core/docs/src/user-guide/core-user-guide/faqs.md@@ -34,3 +34,27 @@ worker1 = GrpcWorkerAgentRuntime(host_address=host_address, extra_grpc_config=ex```**Note**: When `GrpcWorkerAgentRuntime` creates a host connection for the clients, it uses `DEFAULT_GRPC_CONFIG` from `HostConnection` class as default set of values which will can be overriden if you pass parameters with the same name using `extra_grpc_config`.++## What are model capabilities and how do I specify them?++Model capabilites are additional capabilities an LLM may have beyond the standard natural language features. There are currently 3 additional capabilities that can be specified within Autogen++- vision: The model is capable of processing and interpreting image data.+- function_calling: The model has the capacity to accept function descriptions; such as the function name, purpose, input parameters, etc; and can respond with an appropriate function to call including any necessary parameters.+- json_output: The model is capable of outputting responses to conform with a specified json format.++Model capabilities can be passed into a model, which will override the default definitions. These capabilities will not affect what the underlying model is actually capable of, but will allow or disallow behaviors associated with them. This is particularly useful when [using local LLMs](cookbook/local-llms-ollama-litellm.ipynb).++```python+from autogen_ext.models import OpenAIChatCompletionClient++client = OpenAIChatCompletionClient(+ model="gpt-4o",+ api_key="YourApiKey",+ model_capabilities={+ "vision": True,+ "function_calling": False,+ "json_output": False,+ }+)+```\ No newline at end of filediff --git a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/model-clients.ipynb b/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/model-clients.ipynbindex 0183954ef..6d0caf98c 100644--- a/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/model-clients.ipynb+++ b/python/packages/autogen-core/docs/src/user-guide/core-user-guide/framework/model-clients.ipynb@@ -96,6 +96,9 @@"cell_type": "markdown","metadata": {},"source": [+ "Default [Model Capabilities](../faqs.md#what-are-model-capabilities-and-how-do-i-specify-them) may be overridden should the need arise.\n",+ "\n",+ "\n","### Streaming Response\n","\n","You can use the {py:meth}`~autogen_ext.models.OpenAIChatCompletionClient.create_streaming` method to create a\n",