From 283861631790e765a48d62763999768cc574b6e5 Mon Sep 17 00:00:00 2001 From: Davor Runje Date: Thu, 17 Oct 2024 06:16:57 +0200 Subject: [PATCH] fix docs (#419) --- docs/docs/en/user-guide/api/openapi/index.md | 8 ++++---- docs/docs/en/user-guide/api/security.md | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/docs/en/user-guide/api/openapi/index.md b/docs/docs/en/user-guide/api/openapi/index.md index 195f65e0d..9df59097d 100644 --- a/docs/docs/en/user-guide/api/openapi/index.md +++ b/docs/docs/en/user-guide/api/openapi/index.md @@ -47,21 +47,21 @@ In this step, we define two agents and specify the initial message that will be - **ConversableAgent**: This agent acts as the weather agent, responsible for fetching weather data from the API. ```python -{! docs_src/user_guide/external_rest_apis/main.py [ln:24-50] !} +{! docs_src/user_guide/external_rest_apis/main.py [ln:24-48] !} ``` ## Register API Functions with the Agents In this step, we register the weather API functions to ensure that the weather agent can call the correct functions to retrieve the required weather data. ```python -{! docs_src/user_guide/external_rest_apis/main.py [ln:51-55] !} +{! docs_src/user_guide/external_rest_apis/main.py [ln:50-54] !} ``` ## Enable Agent Interaction and Chat Here, the user agent initiates a chat with the weather agent, which queries the API and returns the weather information. The conversation is summarized using a method provided by the LLM. ```python -{! docs_src/user_guide/external_rest_apis/main.py [ln:56-64] !} +{! docs_src/user_guide/external_rest_apis/main.py [ln:56-63] !} ``` ## Define FastAgency Application @@ -69,7 +69,7 @@ Here, the user agent initiates a chat with the weather agent, which queries the Next, define your FastAgency application. ```python -{! docs_src/user_guide/external_rest_apis/main.py [ln:67] !} +{! docs_src/user_guide/external_rest_apis/main.py [ln:66] !} ``` ## Complete Application Code diff --git a/docs/docs/en/user-guide/api/security.md b/docs/docs/en/user-guide/api/security.md index f68df0b5c..6cf72cc1f 100644 --- a/docs/docs/en/user-guide/api/security.md +++ b/docs/docs/en/user-guide/api/security.md @@ -171,7 +171,7 @@ Here, we define security settings for the weather API by setting API keys for au You can also set security parameters for a specific method. The code below demonstrates how to apply security parameters to a specific method instead of globally. In this example, the security settings are only applied to the `get_daily_weather_daily_get` method. ```python -{! docs_src/user_guide/external_rest_apis/security.py [ln:28-32] !} +{! docs_src/user_guide/external_rest_apis/security.py [ln:28,29.3,30.3,31.3,32.3] !} ``` ### Define the Workflow and Agents @@ -197,7 +197,7 @@ In this step, we register the weather API functions to ensure that the weather a Here, the user agent initiates a chat with the weather agent, which queries the API and returns the weather information. The conversation is summarized using a method provided by the LLM. ```python -{! docs_src/user_guide/external_rest_apis/security.py [ln:68-76] !} +{! docs_src/user_guide/external_rest_apis/security.py [ln:68-75] !} ``` ### Define FastAgency Application @@ -205,7 +205,7 @@ Here, the user agent initiates a chat with the weather agent, which queries the Next, define your FastAgency application. ```python -{! docs_src/user_guide/external_rest_apis/security.py [ln:79] !} +{! docs_src/user_guide/external_rest_apis/security.py [ln:78] !} ``` ### Complete Application Code