Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 214
configured_endpoints: 199
53 changes: 2 additions & 51 deletions api.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# Agent

## Skills

### Namespaces

Methods:

- <code title="post /agent/skills/namespaces">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">create</a>(\*\*<a href="src/casedev/types/agent/skills/namespace_create_params.py">params</a>) -> None</code>
- <code title="get /agent/skills/namespaces/{id}">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">retrieve</a>(id) -> None</code>
- <code title="get /agent/skills/namespaces">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">list</a>() -> None</code>
- <code title="delete /agent/skills/namespaces/{id}">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">delete</a>(id) -> None</code>
- <code title="post /agent/skills/namespaces/{id}/publish">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">publish</a>(id, \*\*<a href="src/casedev/types/agent/skills/namespace_publish_params.py">params</a>) -> None</code>
- <code title="get /agent/skills/namespaces/{id}/pull">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">pull</a>(id) -> None</code>
- <code title="post /agent/skills/namespaces/{id}/rotate-token">client.agent.skills.namespaces.<a href="./src/casedev/resources/agent/skills/namespaces.py">rotate_token</a>(id) -> None</code>

## V1

### Agents
Expand Down Expand Up @@ -78,43 +64,6 @@ Methods:

- <code title="post /agent/v1/execute">client.agent.v1.execute.<a href="./src/casedev/resources/agent/v1/execute.py">create</a>(\*\*<a href="src/casedev/types/agent/v1/execute_create_params.py">params</a>) -> <a href="./src/casedev/types/agent/v1/execute_create_response.py">ExecuteCreateResponse</a></code>

### Chat

Types:

```python
from casedev.types.agent.v1 import (
ChatCreateResponse,
ChatDeleteResponse,
ChatCancelResponse,
ChatRespondResponse,
ChatStreamResponse,
)
```

Methods:

- <code title="post /agent/v1/chat">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">create</a>(\*\*<a href="src/casedev/types/agent/v1/chat_create_params.py">params</a>) -> <a href="./src/casedev/types/agent/v1/chat_create_response.py">ChatCreateResponse</a></code>
- <code title="delete /agent/v1/chat/{id}">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">delete</a>(id) -> <a href="./src/casedev/types/agent/v1/chat_delete_response.py">ChatDeleteResponse</a></code>
- <code title="post /agent/v1/chat/{id}/cancel">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">cancel</a>(id) -> <a href="./src/casedev/types/agent/v1/chat_cancel_response.py">ChatCancelResponse</a></code>
- <code title="post /agent/v1/chat/{id}/question/{requestID}/reply">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">reply_to_question</a>(request_id, \*, id, \*\*<a href="src/casedev/types/agent/v1/chat_reply_to_question_params.py">params</a>) -> None</code>
- <code title="post /agent/v1/chat/{id}/respond">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">respond</a>(id, \*\*<a href="src/casedev/types/agent/v1/chat_respond_params.py">params</a>) -> str</code>
- <code title="post /agent/v1/chat/{id}/message">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">send_message</a>(id, \*\*<a href="src/casedev/types/agent/v1/chat_send_message_params.py">params</a>) -> None</code>
- <code title="get /agent/v1/chat/{id}/stream">client.agent.v1.chat.<a href="./src/casedev/resources/agent/v1/chat/chat.py">stream</a>(id, \*\*<a href="src/casedev/types/agent/v1/chat_stream_params.py">params</a>) -> str</code>

#### Files

Types:

```python
from casedev.types.agent.v1.chat import FileListResponse
```

Methods:

- <code title="get /agent/v1/chat/{id}/files">client.agent.v1.chat.files.<a href="./src/casedev/resources/agent/v1/chat/files.py">list</a>(id) -> <a href="./src/casedev/types/agent/v1/chat/file_list_response.py">FileListResponse</a></code>
- <code title="get /agent/v1/chat/{id}/files/{filePath}">client.agent.v1.chat.files.<a href="./src/casedev/resources/agent/v1/chat/files.py">download</a>(file_path, \*, id) -> BinaryAPIResponse</code>

# System

Types:
Expand Down Expand Up @@ -557,6 +506,7 @@ from casedev.types import (
SkillCreateResponse,
SkillUpdateResponse,
SkillDeleteResponse,
SkillExportResponse,
SkillReadResponse,
SkillResolveResponse,
)
Expand All @@ -567,6 +517,7 @@ Methods:
- <code title="post /skills">client.skills.<a href="./src/casedev/resources/skills/skills.py">create</a>(\*\*<a href="src/casedev/types/skill_create_params.py">params</a>) -> <a href="./src/casedev/types/skill_create_response.py">SkillCreateResponse</a></code>
- <code title="put /skills/{slug}">client.skills.<a href="./src/casedev/resources/skills/skills.py">update</a>(path_slug, \*\*<a href="src/casedev/types/skill_update_params.py">params</a>) -> <a href="./src/casedev/types/skill_update_response.py">SkillUpdateResponse</a></code>
- <code title="delete /skills/{slug}">client.skills.<a href="./src/casedev/resources/skills/skills.py">delete</a>(slug) -> <a href="./src/casedev/types/skill_delete_response.py">SkillDeleteResponse</a></code>
- <code title="get /skills/{slug}/export">client.skills.<a href="./src/casedev/resources/skills/skills.py">export</a>(slug, \*\*<a href="src/casedev/types/skill_export_params.py">params</a>) -> <a href="./src/casedev/types/skill_export_response.py">SkillExportResponse</a></code>
- <code title="get /skills/{slug}">client.skills.<a href="./src/casedev/resources/skills/skills.py">read</a>(slug) -> <a href="./src/casedev/types/skill_read_response.py">SkillReadResponse</a></code>
- <code title="get /skills/resolve">client.skills.<a href="./src/casedev/resources/skills/skills.py">resolve</a>(\*\*<a href="src/casedev/types/skill_resolve_params.py">params</a>) -> <a href="./src/casedev/types/skill_resolve_response.py">SkillResolveResponse</a></code>

Expand Down
4 changes: 1 addition & 3 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"include-v-in-tag": true,
"include-component-in-tag": false,
"versioning": "prerelease",
"prerelease": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": false,
"pull-request-header": "Automated Release PR",
Expand Down Expand Up @@ -63,4 +61,4 @@
"extra-files": [
"src/casedev/_version.py"
]
}
}
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions src/casedev/resources/agent/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,8 @@
AgentResourceWithStreamingResponse,
AsyncAgentResourceWithStreamingResponse,
)
from .skills import (
SkillsResource,
AsyncSkillsResource,
SkillsResourceWithRawResponse,
AsyncSkillsResourceWithRawResponse,
SkillsResourceWithStreamingResponse,
AsyncSkillsResourceWithStreamingResponse,
)

__all__ = [
"SkillsResource",
"AsyncSkillsResource",
"SkillsResourceWithRawResponse",
"AsyncSkillsResourceWithRawResponse",
"SkillsResourceWithStreamingResponse",
"AsyncSkillsResourceWithStreamingResponse",
"V1Resource",
"AsyncV1Resource",
"V1ResourceWithRawResponse",
Expand Down
32 changes: 0 additions & 32 deletions src/casedev/resources/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,11 @@
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .skills.skills import (
SkillsResource,
AsyncSkillsResource,
SkillsResourceWithRawResponse,
AsyncSkillsResourceWithRawResponse,
SkillsResourceWithStreamingResponse,
AsyncSkillsResourceWithStreamingResponse,
)

__all__ = ["AgentResource", "AsyncAgentResource"]


class AgentResource(SyncAPIResource):
@cached_property
def skills(self) -> SkillsResource:
return SkillsResource(self._client)

@cached_property
def v1(self) -> V1Resource:
return V1Resource(self._client)
Expand All @@ -54,10 +42,6 @@ def with_streaming_response(self) -> AgentResourceWithStreamingResponse:


class AsyncAgentResource(AsyncAPIResource):
@cached_property
def skills(self) -> AsyncSkillsResource:
return AsyncSkillsResource(self._client)

@cached_property
def v1(self) -> AsyncV1Resource:
return AsyncV1Resource(self._client)
Expand Down Expand Up @@ -86,10 +70,6 @@ class AgentResourceWithRawResponse:
def __init__(self, agent: AgentResource) -> None:
self._agent = agent

@cached_property
def skills(self) -> SkillsResourceWithRawResponse:
return SkillsResourceWithRawResponse(self._agent.skills)

@cached_property
def v1(self) -> V1ResourceWithRawResponse:
return V1ResourceWithRawResponse(self._agent.v1)
Expand All @@ -99,10 +79,6 @@ class AsyncAgentResourceWithRawResponse:
def __init__(self, agent: AsyncAgentResource) -> None:
self._agent = agent

@cached_property
def skills(self) -> AsyncSkillsResourceWithRawResponse:
return AsyncSkillsResourceWithRawResponse(self._agent.skills)

@cached_property
def v1(self) -> AsyncV1ResourceWithRawResponse:
return AsyncV1ResourceWithRawResponse(self._agent.v1)
Expand All @@ -112,10 +88,6 @@ class AgentResourceWithStreamingResponse:
def __init__(self, agent: AgentResource) -> None:
self._agent = agent

@cached_property
def skills(self) -> SkillsResourceWithStreamingResponse:
return SkillsResourceWithStreamingResponse(self._agent.skills)

@cached_property
def v1(self) -> V1ResourceWithStreamingResponse:
return V1ResourceWithStreamingResponse(self._agent.v1)
Expand All @@ -125,10 +97,6 @@ class AsyncAgentResourceWithStreamingResponse:
def __init__(self, agent: AsyncAgentResource) -> None:
self._agent = agent

@cached_property
def skills(self) -> AsyncSkillsResourceWithStreamingResponse:
return AsyncSkillsResourceWithStreamingResponse(self._agent.skills)

@cached_property
def v1(self) -> AsyncV1ResourceWithStreamingResponse:
return AsyncV1ResourceWithStreamingResponse(self._agent.v1)
33 changes: 0 additions & 33 deletions src/casedev/resources/agent/skills/__init__.py

This file was deleted.

Loading
Loading