Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 27, 2023
1 parent fec9dcc commit c2315be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
14 changes: 14 additions & 0 deletions DOCUMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@ Parameters
timeout: int
Request timeout in seconds.

<a id="Bard.AsyncChatbot.create"></a>

#### create

```python
@classmethod
async def create(cls,
session_id: str,
proxy: dict = None,
timeout: int = 20) -> "AsyncChatbot"
```

Async constructor.

<a id="Bard.AsyncChatbot.save_conversation"></a>

#### save\_conversation
Expand Down
3 changes: 3 additions & 0 deletions src/Bard.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ async def create(
proxy: dict = None,
timeout: int = 20,
) -> "AsyncChatbot":
"""
Async constructor.
"""
instance = cls(session_id, proxy, timeout)
instance.SNlM0e = await instance.__get_snlm0e()
return instance
Expand Down

0 comments on commit c2315be

Please sign in to comment.