We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7162a6 commit d533fbfCopy full SHA for d533fbf
1 file changed
README.md
@@ -38,6 +38,28 @@ client = Agentex(
38
tasks = client.tasks.list()
39
```
40
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
63
While you can provide an `api_key` keyword argument,
64
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
65
to add `AGENTEX_SDK_API_KEY="My API Key"` to your `.env` file
0 commit comments