-
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
self.collection_id = collection_id | ||
self._update_attributes(kwargs) | ||
|
||
def __repr__(self) -> str: |
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 add other self variables to the repr like video_id, meeting_url.
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 me add meeting_url
video_id
and speaker_timeline
we should skip.
video_id
will be None when meeting is being recorded.
speaker_timeline
can be very large and not required for glancing the meeting info.
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.
Looks good to me.
✨ 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.