Skip to content

Commit

Permalink
fix docs (#419)
Browse files Browse the repository at this point in the history
  • Loading branch information
davorrunje authored Oct 17, 2024
1 parent 882977d commit 2838616
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions docs/docs/en/user-guide/api/openapi/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,29 @@ 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

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
Expand Down
6 changes: 3 additions & 3 deletions docs/docs/en/user-guide/api/security.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -197,15 +197,15 @@ 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

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
Expand Down

0 comments on commit 2838616

Please sign in to comment.