Skip to content
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

fix: python code export filter respects selected rows in table #2318

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

gtarpenning
Copy link
Member

@gtarpenning gtarpenning commented Sep 5, 2024

Now, selecting a row will populate the call_ids field of the filter, respecting the CallsQueryReq and CallFilter Specs:
Screenshot 2024-09-05 at 3 08 47 PM

CallsQueryReq:

class CallsQueryReq(BaseModel):
    project_id: str
    filter: Optional[CallsFilter] = None
    limit: Optional[int] = None
    offset: Optional[int] = None
    sort_by: Optional[List[SortBy]] = None
    query: Optional[Query] = None
    include_costs: Optional[bool] = Field(
        default=False,
        description="Beta, subject to change. If true, the response will"
        " include any model costs for each call.",
    )
    include_feedback: Optional[bool] = Field(
        default=False,
        description="Beta, subject to change. If true, the response will"
        " include feedback for each call.",
    )
    columns: Optional[List[str]] = None
    expand_columns: Optional[List[str]] = Field(
        default=None,
        examples=[["inputs.self.message", "inputs.model.prompt"]],
        description="Columns to expand, i.e. refs to other objects",
    )

CallFilter:

class CallsFilter(BaseModel):
    op_names: Optional[List[str]] = None
    input_refs: Optional[List[str]] = None
    output_refs: Optional[List[str]] = None
    parent_ids: Optional[List[str]] = None
    trace_ids: Optional[List[str]] = None
    call_ids: Optional[List[str]] = None
    trace_roots_only: Optional[bool] = None
    wb_user_ids: Optional[List[str]] = None
    wb_run_ids: Optional[List[str]] = None

@gtarpenning gtarpenning marked this pull request as ready for review September 5, 2024 22:08
@gtarpenning gtarpenning requested a review from a team as a code owner September 5, 2024 22:08
@gtarpenning gtarpenning enabled auto-merge (squash) September 5, 2024 22:15
@circle-job-mirror
Copy link

circle-job-mirror bot commented Sep 5, 2024

@gtarpenning gtarpenning merged commit 2812703 into master Sep 5, 2024
27 checks passed
@gtarpenning gtarpenning deleted the griffin/selected-call-ids branch September 5, 2024 22:26
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants