diff --git a/.stats.yml b/.stats.yml index 89e80cc66..7b6d3dc17 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 45 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-eeb5bf63b18d948611eec48d0225e9bba63b170f64eeeb35d91825724b7cf6c3.yml -openapi_spec_hash: 5bbd18a405a11e8497d38a5a88b98018 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sgp%2Fagentex-sdk-636aa63c588134e6f47fc45212049593d91f810a9c7bd8d7a57810cf1b5ffc92.yml +openapi_spec_hash: c76a42d4510aeafd896bc0d596f17af4 config_hash: fb079ef7936611b032568661b8165f19 diff --git a/src/agentex/resources/spans.py b/src/agentex/resources/spans.py index ecd692644..f8d97e0de 100644 --- a/src/agentex/resources/spans.py +++ b/src/agentex/resources/spans.py @@ -57,7 +57,6 @@ def create( input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit, output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit, parent_id: Optional[str] | Omit = omit, - task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -87,8 +86,6 @@ def create( parent_id: ID of the parent span if this is a child span in a trace - task_id: ID of the task this span belongs to - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -110,7 +107,6 @@ def create( "input": input, "output": output, "parent_id": parent_id, - "task_id": task_id, }, span_create_params.SpanCreateParams, ), @@ -164,7 +160,6 @@ def update( output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit, parent_id: Optional[str] | Omit = omit, start_time: Union[str, datetime, None] | Omit = omit, - task_id: Optional[str] | Omit = omit, trace_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -191,8 +186,6 @@ def update( start_time: The time the span started - task_id: ID of the task this span belongs to - trace_id: Unique identifier for the trace this span belongs to extra_headers: Send extra headers @@ -216,7 +209,6 @@ def update( "output": output, "parent_id": parent_id, "start_time": start_time, - "task_id": task_id, "trace_id": trace_id, }, span_update_params.SpanUpdateParams, @@ -234,7 +226,6 @@ def list( order_by: Optional[str] | Omit = omit, order_direction: str | Omit = omit, page_number: int | Omit = omit, - task_id: Optional[str] | Omit = omit, trace_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -244,7 +235,7 @@ def list( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SpanListResponse: """ - List spans, optionally filtered by trace_id and/or task_id + List all spans for a given trace ID Args: extra_headers: Send extra headers @@ -268,7 +259,6 @@ def list( "order_by": order_by, "order_direction": order_direction, "page_number": page_number, - "task_id": task_id, "trace_id": trace_id, }, span_list_params.SpanListParams, @@ -310,7 +300,6 @@ async def create( input: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit, output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit, parent_id: Optional[str] | Omit = omit, - task_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -340,8 +329,6 @@ async def create( parent_id: ID of the parent span if this is a child span in a trace - task_id: ID of the task this span belongs to - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -363,7 +350,6 @@ async def create( "input": input, "output": output, "parent_id": parent_id, - "task_id": task_id, }, span_create_params.SpanCreateParams, ), @@ -417,7 +403,6 @@ async def update( output: Union[Dict[str, object], Iterable[Dict[str, object]], None] | Omit = omit, parent_id: Optional[str] | Omit = omit, start_time: Union[str, datetime, None] | Omit = omit, - task_id: Optional[str] | Omit = omit, trace_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -444,8 +429,6 @@ async def update( start_time: The time the span started - task_id: ID of the task this span belongs to - trace_id: Unique identifier for the trace this span belongs to extra_headers: Send extra headers @@ -469,7 +452,6 @@ async def update( "output": output, "parent_id": parent_id, "start_time": start_time, - "task_id": task_id, "trace_id": trace_id, }, span_update_params.SpanUpdateParams, @@ -487,7 +469,6 @@ async def list( order_by: Optional[str] | Omit = omit, order_direction: str | Omit = omit, page_number: int | Omit = omit, - task_id: Optional[str] | Omit = omit, trace_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -497,7 +478,7 @@ async def list( timeout: float | httpx.Timeout | None | NotGiven = not_given, ) -> SpanListResponse: """ - List spans, optionally filtered by trace_id and/or task_id + List all spans for a given trace ID Args: extra_headers: Send extra headers @@ -521,7 +502,6 @@ async def list( "order_by": order_by, "order_direction": order_direction, "page_number": page_number, - "task_id": task_id, "trace_id": trace_id, }, span_list_params.SpanListParams, diff --git a/src/agentex/types/span.py b/src/agentex/types/span.py index 98793c03b..e5719bbe6 100644 --- a/src/agentex/types/span.py +++ b/src/agentex/types/span.py @@ -34,6 +34,3 @@ class Span(BaseModel): parent_id: Optional[str] = None """ID of the parent span if this is a child span in a trace""" - - task_id: Optional[str] = None - """ID of the task this span belongs to""" diff --git a/src/agentex/types/span_create_params.py b/src/agentex/types/span_create_params.py index 7debfc8d4..c7111d6fa 100644 --- a/src/agentex/types/span_create_params.py +++ b/src/agentex/types/span_create_params.py @@ -38,6 +38,3 @@ class SpanCreateParams(TypedDict, total=False): parent_id: Optional[str] """ID of the parent span if this is a child span in a trace""" - - task_id: Optional[str] - """ID of the task this span belongs to""" diff --git a/src/agentex/types/span_list_params.py b/src/agentex/types/span_list_params.py index 286c3d2bf..40d4d651b 100644 --- a/src/agentex/types/span_list_params.py +++ b/src/agentex/types/span_list_params.py @@ -17,6 +17,4 @@ class SpanListParams(TypedDict, total=False): page_number: int - task_id: Optional[str] - trace_id: Optional[str] diff --git a/src/agentex/types/span_update_params.py b/src/agentex/types/span_update_params.py index fda32dbad..3ebb54654 100644 --- a/src/agentex/types/span_update_params.py +++ b/src/agentex/types/span_update_params.py @@ -33,8 +33,5 @@ class SpanUpdateParams(TypedDict, total=False): start_time: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] """The time the span started""" - task_id: Optional[str] - """ID of the task this span belongs to""" - trace_id: Optional[str] """Unique identifier for the trace this span belongs to""" diff --git a/tests/api_resources/test_spans.py b/tests/api_resources/test_spans.py index 7cccec2ad..948760a67 100644 --- a/tests/api_resources/test_spans.py +++ b/tests/api_resources/test_spans.py @@ -42,7 +42,6 @@ def test_method_create_with_all_params(self, client: Agentex) -> None: input={"foo": "bar"}, output={"foo": "bar"}, parent_id="parent_id", - task_id="task_id", ) assert_matches_type(Span, span, path=["response"]) @@ -138,7 +137,6 @@ def test_method_update_with_all_params(self, client: Agentex) -> None: output={"foo": "bar"}, parent_id="parent_id", start_time=parse_datetime("2019-12-27T18:11:19.117Z"), - task_id="task_id", trace_id="trace_id", ) assert_matches_type(Span, span, path=["response"]) @@ -191,7 +189,6 @@ def test_method_list_with_all_params(self, client: Agentex) -> None: order_by="order_by", order_direction="order_direction", page_number=1, - task_id="task_id", trace_id="trace_id", ) assert_matches_type(SpanListResponse, span, path=["response"]) @@ -247,7 +244,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncAgentex) - input={"foo": "bar"}, output={"foo": "bar"}, parent_id="parent_id", - task_id="task_id", ) assert_matches_type(Span, span, path=["response"]) @@ -343,7 +339,6 @@ async def test_method_update_with_all_params(self, async_client: AsyncAgentex) - output={"foo": "bar"}, parent_id="parent_id", start_time=parse_datetime("2019-12-27T18:11:19.117Z"), - task_id="task_id", trace_id="trace_id", ) assert_matches_type(Span, span, path=["response"]) @@ -396,7 +391,6 @@ async def test_method_list_with_all_params(self, async_client: AsyncAgentex) -> order_by="order_by", order_direction="order_direction", page_number=1, - task_id="task_id", trace_id="trace_id", ) assert_matches_type(SpanListResponse, span, path=["response"])