Skip to content

Commit d533fbf

Browse files
SWE Destroyerclaude
andcommitted
docs: add hello world function to README.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c7162a6 commit d533fbf

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,28 @@ client = Agentex(
3838
tasks = 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+
4163
While you can provide an `api_key` keyword argument,
4264
we recommend using [python-dotenv](https://pypi.org/project/python-dotenv/)
4365
to add `AGENTEX_SDK_API_KEY="My API Key"` to your `.env` file

0 commit comments

Comments
 (0)