You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- create_skill/update_skill: default labels/new_labels to None and coerce
to [] in the body (avoid shared mutable default list)
- SkillCache.invalidate: anchor prefix match with '-' separator so a skill
named 'foo' cannot evict 'foobar-*' cache entries
- get_skill: docstring fetch_timeout_seconds is seconds, not milliseconds
Copy file name to clipboardExpand all lines: langfuse/_client/client.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4088,7 +4088,7 @@ def get_skill(
4088
4088
keyword argument. If not set, defaults to 60 seconds. Disables caching if set to 0.
4089
4089
fallback: Optional[str]: The skill instructions to return if fetching the skill fails. Important on the first call where no cached skill is available. Follows Langfuse skill formatting with double curly braces for variables. Defaults to None.
4090
4090
max_retries: Optional[int]: The maximum number of retries in case of API/network errors. Defaults to 2. The maximum value is 4. Retries have an exponential backoff with a maximum delay of 10 seconds.
4091
-
fetch_timeout_seconds: Optional[int]: The timeout in milliseconds for fetching the skill. Defaults to the default timeout set on the SDK, which is 5 seconds per default.
4091
+
fetch_timeout_seconds: Optional[int]: The timeout in seconds for fetching the skill. Defaults to the default timeout set on the SDK, which is 5 seconds per default.
4092
4092
4093
4093
Returns:
4094
4094
The skill object retrieved from the cache or directly fetched if not cached or expired, as a SkillClient.
0 commit comments