You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
436 B
14 lines
436 B
6 months ago
|
import json
|
||
|
from swarms.tools.py_func_to_openai_func_str import (
|
||
|
get_openai_function_schema_from_func,
|
||
|
)
|
||
|
from swarms.tools.prebuilt.bing_api import fetch_web_articles_bing_api
|
||
|
|
||
|
out = get_openai_function_schema_from_func(
|
||
|
fetch_web_articles_bing_api,
|
||
|
name="fetch_web_articles_bing_api",
|
||
|
description="Fetches four articles from Bing Web Search API based on the given query.",
|
||
|
)
|
||
|
out = json.dumps(out, indent=2)
|
||
|
print(out)
|