MCPcopy Create free account
hub / github.com/anomalyco/opencode-sdk-python / list

Method list

src/opencode_ai/resources/event.py:87–106  ·  view source on GitHub ↗

Get events

(
        self,
        *,
        # 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,
        extra_query: Query | None = None,
        extra_body: Body | None = None,
        timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
    )

Source from the content-addressed store, hash-verified

85 return AsyncEventResourceWithStreamingResponse(self)
86
87 async def list(
88 self,
89 *,
90 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
91 # The extra values given here take precedence over values defined on the client or passed to this method.
92 extra_headers: Headers | None = None,
93 extra_query: Query | None = None,
94 extra_body: Body | None = None,
95 timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
96 ) -> AsyncStream[EventListResponse]:
97 """Get events"""
98 return await self._get(
99 "/event",
100 options=make_request_options(
101 extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
102 ),
103 cast_to=cast(Any, EventListResponse), # Union types cannot be passed in as arguments in the type system
104 stream=True,
105 stream_cls=AsyncStream[EventListResponse],
106 )
107
108
109class EventResourceWithRawResponse:

Callers

nothing calls this directly

Calls 1

make_request_optionsFunction · 0.85

Tested by

no test coverage detected