Skip to content

🌿 Fern Regeneration -- November 28, 2025#66

Merged
jackfischer merged 1 commit into
mainfrom
fern-bot/2025-11-28T22-41Z
Nov 28, 2025
Merged

🌿 Fern Regeneration -- November 28, 2025#66
jackfischer merged 1 commit into
mainfrom
fern-bot/2025-11-28T22-41Z

Conversation

@fern-api

@fern-api fern-api Bot commented Nov 28, 2025

Copy link
Copy Markdown
Contributor

This PR regenerates code to match the latest API Definition.

@jackfischer jackfischer merged commit c99fcd8 into main Nov 28, 2025
3 checks passed
@greptile-apps

greptile-apps Bot commented Nov 28, 2025

Copy link
Copy Markdown

Greptile Overview

Greptile Summary

This PR adds a new export endpoint to the Copilots SDK, enabling users to export copilot configurations for backup or migration purposes.

Key Changes:

  • New export() method added to both sync (CopilotsClient) and async (AsyncCopilotsClient) clients
  • New data models: ExportedCopilot and ExportCopilotsResponse for handling export results
  • Support for filtering exports by creation dates (agent_created_from/to, version_created_from/to)
  • Pagination support via limit and cursor parameters
  • Version bump from 0.1.13 to 0.1.14
  • Complete API documentation added to reference.md

The implementation follows existing SDK patterns consistently, using the same client wrapper structure, error handling, and Pydantic model configuration as other endpoints in the codebase.

Confidence Score: 5/5

  • This PR is safe to merge with minimal risk
  • This is an automated SDK regeneration from Fern with consistent patterns throughout. All changes follow existing code conventions, use proper type annotations, include comprehensive documentation, and maintain backward compatibility. No logical errors, security issues, or breaking changes detected.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
src/credal/copilots/client.py 5/5 New export method added to both sync and async clients with pagination support and datetime filters
src/credal/copilots/raw_client.py 5/5 New export method added to both sync and async raw clients with POST request to v0/copilots/export
src/credal/copilots/types/export_copilots_response.py 5/5 New Pydantic model for export response with pagination fields (data, has_more, next_cursor)
src/credal/copilots/types/exported_copilot.py 5/5 New Pydantic model for exported copilot with complete configuration fields using typing.Any for complex nested structures

Sequence Diagram

sequenceDiagram
    participant Client as Client Code
    participant CopilotClient as CopilotsClient
    participant RawClient as RawCopilotsClient
    participant API as Credal API (v0/copilots/export)
    
    Client->>CopilotClient: export(agent_created_from, agent_created_to, version_created_from, version_created_to, limit, cursor)
    CopilotClient->>RawClient: export(parameters)
    RawClient->>API: POST v0/copilots/export with JSON body
    Note over RawClient,API: Body includes: agentCreatedFrom, agentCreatedTo,<br/>versionCreatedFrom, versionCreatedTo,<br/>limit, cursor
    API-->>RawClient: HTTP Response (200-299)
    RawClient->>RawClient: Parse JSON to ExportCopilotsResponse
    RawClient-->>CopilotClient: HttpResponse[ExportCopilotsResponse]
    CopilotClient->>CopilotClient: Extract response.data
    CopilotClient-->>Client: ExportCopilotsResponse(data, has_more, next_cursor)
    
    Note over Client,API: ExportCopilotsResponse contains:<br/>- List[ExportedCopilot] data<br/>- bool has_more<br/>- Optional[str] next_cursor
Loading

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant