🔄 Big News! bazed.ai is now sagentic.ai. Same vision, new name!

Skip to content

@sagentic-ai/sagentic-af / parseDuration

parseDuration() ​

ts
parseDuration(duration): Duration

Use to parse time durations coming in from OpenAI in headers

Parameters ​

• duration: string

Returns ​

Duration

Source ​

src/client.ts:466