-
Notifications
You must be signed in to change notification settings - Fork 11
feat: unified upload()
API, meeting recording flow, custom headers & gen-AI text (v0.2.16)
#46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
8ad04a3
to
6ee9d6f
Compare
…val of wait for status
Add meeting recorder
upload()
API, meeting recording flow, custom headers & gen-AI text (v0.2.16)
…s meeting attributes
return self.status in ["initializing", "processing"] | ||
|
||
@property | ||
def is_completed(self) -> bool: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's refresh the meeting data before checking the status.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a simple property which should be reactive to current local status.
Ideally production apps should be driven through callback.
If users are going with sync route for some reason wait_for_status
is the way to go.
If users want to write their own logic they can use combination of refresh
and above is_completed
✨ What’s new in v0.2.16
upload()
signature — pass a single string (source
) or keep usingfile_path
/url
kwargs.• Added
generate_text()
onCollection
for Gen-AI prompts.• Added
record_meeting()
on bothConnection
andCollection
.Meeting
class to track live-call recordings (status polling, helpers, etc.).connect(**kwargs)
now accepts arbitrary header overrides → propagated to_http_client
viax-<header>
convention.text
,meeting
,record
toApiPath
.conn.upload("...")
,coll.upload("...")
).__about__.py
.🛠 Details
1. Unified Upload Flow
Why? To make the SDK feel as “Pythonic” as possible while retaining full backward compatibility.
Highlights
_is_url()
and smarter path/url detection.source
arg; legacyfile_path
/url
kwargs still work.2. Meeting Recording End-to-End
Meeting
model withrefresh()
,is_active
,wait_for_status()
helpers.Connection.record_meeting()
andCollection.record_meeting()
POST to/collection/<id>/meeting/record
and return aMeeting
instance.3. Gen-AI Text Generation
Collection.generate_text(prompt, model_name="basic" | "pro" | "ultra", response_type="text" | "json")
hits/generate/text
.4. Custom Headers Support
connect(..., my_header="foo")
⇒ request headerX-My-Header: foo
.Includes
_format_headers()
for snake_case → http-header mapping.🔄 Backwards Compatibility
upload(file_path=..., url=...)
calls still function unchanged.