File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,28 @@ client = Agentex(
3838tasks = client.tasks.list()
3939```
4040
41+ ## Hello World
42+
43+ A minimal example to get started with the Agentex Python library:
44+
45+ ``` python
46+ import os
47+ from agentex import Agentex
48+
49+
50+ def hello_world () -> None :
51+ client = Agentex(
52+ api_key = os.environ.get(" AGENTEX_SDK_API_KEY" ),
53+ )
54+ tasks = client.tasks.list()
55+ print (" Hello, World! Connected to Agentex successfully." )
56+ print (f " Found { len (tasks.data)} tasks. " )
57+
58+
59+ if __name__ == " __main__" :
60+ hello_world()
61+ ```
62+
4163While you can provide an ` api_key ` keyword argument,
4264we recommend using [ python-dotenv] ( https://pypi.org/project/python-dotenv/ )
4365to add ` AGENTEX_SDK_API_KEY="My API Key" ` to your ` .env ` file
You can’t perform that action at this time.
0 commit comments