semvec/pypi-packages huggingface dataset:
openai-agent 0.1.0
Easy-to-use OpenAI Agent with support for the latest Function call feature.
Requires Python: >=3.11,<4.0

# OpenAI Agent

Easy-to-use OpenAI Agent with support for the latest Function call feature.

## Usage

1. Create your own functions using comprehensive documentation comments and type annotations.

```python
def add(a: int, b: int):
    """Add two numbers.

    :param a: First number.
    :param b: Second number.
    """
    return a + b
```

2. Load the functions as function objects.

```python
from openai_agent.completions import get_function_completion
from openai_agent.functions import Function
from openai_agent.messages import UserMessage


response = get_function_completion(
    messages=[UserMessage(content="Calculate 2 + 2")],
    functions=[Function.load_from_func(add)],
)

print(response.content)
```
python3-nbctl 1.0.0
convert jupyter *.ipynb file to markdown files
Requires Python: >=3.6

# python3-nbctl

将ipynb文件转化为markdown文件/convert jupyter *.ipynb file to markdown files

[![PyPI-python3-nbctl](https://img.shields.io/pypi/v/python3-nbctl.svg?maxAge=3600)](https://pypi.org/project/python3-nbctl/)

Github Actions for [Container ipynb to markdown](https://github.com/marketplace/actions/nbctl)

## How to Use by Github Actions

```
      - name: convert jupyter *.ipynb file to markdown
        uses: x-actions/python3-nbctl@v1
        with:
          script: >
            find <path> -type f -name "*.ipynb" | grep -v ".ipynb_checkpoints" | xargs -I{} nbctl --input {} --force --debug
```

## Dev and Test

- local run

```
# install
pip3 install -r requirements.txt
python3 setup.py install

# or
pip3 install python3-nbctl
```

- help

```
nbctl --help
```