feat(api): update API spec from langfuse/langfuse fa072d0 #1491
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Adds
expand_metadataparameter toget_many()inclient.pyfor non-truncated metadata retrieval, updating documentation and function handling.expand_metadataparameter toget_many()inclient.pyfor non-truncated metadata retrieval.expand_metadataallows full retrieval for specified keys.reference.mdto documentexpand_metadatausage and behavior.get_many()inObservationsV2ClientandAsyncObservationsV2Clientto includeexpand_metadataparameter handling.This description was created by
for 36f6eac. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Summary
Added new
expand_metadataparameter to the observations v2 API endpoint to allow retrieving non-truncated metadata values for specified keys.expand_metadataoptional parameter to both sync (ObservationsV2Client) and async (AsyncObservationsV2Client)get_many()methodsexpand_metadatato API parameterexpandMetadata(camelCase) in request paramsConfidence Score: 5/5
Important Files Changed
expand_metadataparameter to both sync and asyncget_many()methods with proper documentation and API integrationexpand_metadataparameter descriptionSequence Diagram
sequenceDiagram participant Client as Client Code participant SyncClient as ObservationsV2Client participant AsyncClient as AsyncObservationsV2Client participant API as Langfuse API Note over Client,API: Sync Flow Client->>SyncClient: get_many(expand_metadata="key1,key2") SyncClient->>API: GET /api/public/v2/observations?expandMetadata=key1,key2 API-->>SyncClient: ObservationsV2Response (full metadata for key1,key2) SyncClient-->>Client: ObservationsV2Response Note over Client,API: Async Flow Client->>AsyncClient: await get_many(expand_metadata="key1,key2") AsyncClient->>API: GET /api/public/v2/observations?expandMetadata=key1,key2 API-->>AsyncClient: ObservationsV2Response (full metadata for key1,key2) AsyncClient-->>Client: ObservationsV2Response