File size: 407 Bytes
7edb85f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import json

from tools.stackoverflow_tool import (
    search_stackoverflow,
)


def main() -> None:
    result = search_stackoverflow(
        query=(
            "Python TypeError object is not subscriptable"
        ),
        limit=5,
    )

    print(
        json.dumps(
            result,
            indent=2,
            ensure_ascii=False,
        )
    )


if __name__ == "__main__":
    main()