Skip to content

Commit f60cf44

Browse files
committed
Fix README: api_key is required, not defaulted to None
The Configuration table listed api_key default None, but __init__ takes api_key with no default and raises ValueError when it's falsy.
1 parent ad836b6 commit f60cf44

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ with AgentScore(api_key="as_live_...") as client:
161161

162162
| Parameter | Default | Description |
163163
|---------------|-----------------------------|--------------------------|
164-
| `api_key` | `None` | API key from [agentscore.sh](https://agentscore.sh) |
164+
| `api_key` | _(required)_ | API key from [agentscore.sh](https://agentscore.sh); raises `ValueError` if missing |
165165
| `base_url` | `https://api.agentscore.sh` | API base URL |
166166
| `timeout` | `10.0` | Request timeout (seconds)|
167167
| `user_agent` | `None` | Prepended to the default `User-Agent` as `"{user_agent} (agentscore-py/{version})"`. Use to attribute API calls to your app. |

0 commit comments

Comments
 (0)