Skip to content

Commit bb5f4be

Browse files
feat(api): api update
1 parent 8a5b00b commit bb5f4be

20 files changed

+5
-1962
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 49
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lemma%2Flemma-dc1b1744bf9a13daa82065ecf5dc75e3870d611ab3fabf2b0f91a7b36815b2a4.yml
3-
openapi_spec_hash: ae1eb47bf32f7b2c225338a245298e02
4-
config_hash: 4a6c48034b76c35207964d66524a0a15
1+
configured_endpoints: 42
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lemma%2Flemma-46a7ce79f1dde8bd1fbfa286cbe02e212a760eab26408dc496d2d09437ccf09a.yml
3+
openapi_spec_hash: 3992f9744c24046c45f96a6285c9018d
4+
config_hash: 3ccc0e50f28be581a8cc4501a5758970

api.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -108,30 +108,9 @@ Methods:
108108
Types:
109109

110110
```python
111-
from lemma.types.projects import Prompt, PromptListResponse, PromptDeleteResponse
111+
from lemma.types.projects import Prompt
112112
```
113113

114-
Methods:
115-
116-
- <code title="post /project/{project_id}/prompts">client.projects.prompts.<a href="./src/lemma/resources/projects/prompts/prompts.py">create</a>(project_id, \*\*<a href="src/lemma/types/projects/prompt_create_params.py">params</a>) -> <a href="./src/lemma/types/projects/prompt.py">Prompt</a></code>
117-
- <code title="get /project/{project_id}/prompts/{prompt_id}">client.projects.prompts.<a href="./src/lemma/resources/projects/prompts/prompts.py">retrieve</a>(prompt_id, \*, project_id) -> <a href="./src/lemma/types/projects/prompt.py">Prompt</a></code>
118-
- <code title="get /project/{project_id}/prompts">client.projects.prompts.<a href="./src/lemma/resources/projects/prompts/prompts.py">list</a>(project_id) -> <a href="./src/lemma/types/projects/prompt_list_response.py">PromptListResponse</a></code>
119-
- <code title="delete /project/{project_id}/prompts/{prompt_id}">client.projects.prompts.<a href="./src/lemma/resources/projects/prompts/prompts.py">delete</a>(prompt_id, \*, project_id) -> <a href="./src/lemma/types/projects/prompt_delete_response.py">PromptDeleteResponse</a></code>
120-
- <code title="patch /project/{project_id}/prompts/{prompt_id}/model">client.projects.prompts.<a href="./src/lemma/resources/projects/prompts/prompts.py">update_model</a>(prompt_id, \*, project_id, \*\*<a href="src/lemma/types/projects/prompt_update_model_params.py">params</a>) -> <a href="./src/lemma/types/projects/prompt.py">Prompt</a></code>
121-
122-
### Iterations
123-
124-
Types:
125-
126-
```python
127-
from lemma.types.projects.prompts import PromptIteration, IterationListResponse
128-
```
129-
130-
Methods:
131-
132-
- <code title="post /project/{project_id}/prompts/{prompt_id}/iterations">client.projects.prompts.iterations.<a href="./src/lemma/resources/projects/prompts/iterations.py">create</a>(prompt_id, \*, project_id, \*\*<a href="src/lemma/types/projects/prompts/iteration_create_params.py">params</a>) -> <a href="./src/lemma/types/projects/prompts/prompt_iteration.py">PromptIteration</a></code>
133-
- <code title="get /project/{project_id}/prompts/{prompt_id}/iterations">client.projects.prompts.iterations.<a href="./src/lemma/resources/projects/prompts/iterations.py">list</a>(prompt_id, \*, project_id) -> <a href="./src/lemma/types/projects/prompts/iteration_list_response.py">IterationListResponse</a></code>
134-
135114
## Evaluators
136115

137116
Types:

src/lemma/resources/projects/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
AgentsResourceWithStreamingResponse,
99
AsyncAgentsResourceWithStreamingResponse,
1010
)
11-
from .prompts import (
12-
PromptsResource,
13-
AsyncPromptsResource,
14-
PromptsResourceWithRawResponse,
15-
AsyncPromptsResourceWithRawResponse,
16-
PromptsResourceWithStreamingResponse,
17-
AsyncPromptsResourceWithStreamingResponse,
18-
)
1911
from .projects import (
2012
ProjectsResource,
2113
AsyncProjectsResource,
@@ -56,12 +48,6 @@
5648
"AsyncOptimizationsResourceWithRawResponse",
5749
"OptimizationsResourceWithStreamingResponse",
5850
"AsyncOptimizationsResourceWithStreamingResponse",
59-
"PromptsResource",
60-
"AsyncPromptsResource",
61-
"PromptsResourceWithRawResponse",
62-
"AsyncPromptsResourceWithRawResponse",
63-
"PromptsResourceWithStreamingResponse",
64-
"AsyncPromptsResourceWithStreamingResponse",
6551
"EvaluatorsResource",
6652
"AsyncEvaluatorsResource",
6753
"EvaluatorsResourceWithRawResponse",

src/lemma/resources/projects/projects.py

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,6 @@
4343
)
4444
from ..._base_client import make_request_options
4545
from ...types.project import Project
46-
from .prompts.prompts import (
47-
PromptsResource,
48-
AsyncPromptsResource,
49-
PromptsResourceWithRawResponse,
50-
AsyncPromptsResourceWithRawResponse,
51-
PromptsResourceWithStreamingResponse,
52-
AsyncPromptsResourceWithStreamingResponse,
53-
)
5446
from .evaluators.evaluators import (
5547
EvaluatorsResource,
5648
AsyncEvaluatorsResource,
@@ -70,10 +62,6 @@ class ProjectsResource(SyncAPIResource):
7062
def optimizations(self) -> OptimizationsResource:
7163
return OptimizationsResource(self._client)
7264

73-
@cached_property
74-
def prompts(self) -> PromptsResource:
75-
return PromptsResource(self._client)
76-
7765
@cached_property
7866
def evaluators(self) -> EvaluatorsResource:
7967
return EvaluatorsResource(self._client)
@@ -304,10 +292,6 @@ class AsyncProjectsResource(AsyncAPIResource):
304292
def optimizations(self) -> AsyncOptimizationsResource:
305293
return AsyncOptimizationsResource(self._client)
306294

307-
@cached_property
308-
def prompts(self) -> AsyncPromptsResource:
309-
return AsyncPromptsResource(self._client)
310-
311295
@cached_property
312296
def evaluators(self) -> AsyncEvaluatorsResource:
313297
return AsyncEvaluatorsResource(self._client)
@@ -557,10 +541,6 @@ def __init__(self, projects: ProjectsResource) -> None:
557541
def optimizations(self) -> OptimizationsResourceWithRawResponse:
558542
return OptimizationsResourceWithRawResponse(self._projects.optimizations)
559543

560-
@cached_property
561-
def prompts(self) -> PromptsResourceWithRawResponse:
562-
return PromptsResourceWithRawResponse(self._projects.prompts)
563-
564544
@cached_property
565545
def evaluators(self) -> EvaluatorsResourceWithRawResponse:
566546
return EvaluatorsResourceWithRawResponse(self._projects.evaluators)
@@ -598,10 +578,6 @@ def __init__(self, projects: AsyncProjectsResource) -> None:
598578
def optimizations(self) -> AsyncOptimizationsResourceWithRawResponse:
599579
return AsyncOptimizationsResourceWithRawResponse(self._projects.optimizations)
600580

601-
@cached_property
602-
def prompts(self) -> AsyncPromptsResourceWithRawResponse:
603-
return AsyncPromptsResourceWithRawResponse(self._projects.prompts)
604-
605581
@cached_property
606582
def evaluators(self) -> AsyncEvaluatorsResourceWithRawResponse:
607583
return AsyncEvaluatorsResourceWithRawResponse(self._projects.evaluators)
@@ -639,10 +615,6 @@ def __init__(self, projects: ProjectsResource) -> None:
639615
def optimizations(self) -> OptimizationsResourceWithStreamingResponse:
640616
return OptimizationsResourceWithStreamingResponse(self._projects.optimizations)
641617

642-
@cached_property
643-
def prompts(self) -> PromptsResourceWithStreamingResponse:
644-
return PromptsResourceWithStreamingResponse(self._projects.prompts)
645-
646618
@cached_property
647619
def evaluators(self) -> EvaluatorsResourceWithStreamingResponse:
648620
return EvaluatorsResourceWithStreamingResponse(self._projects.evaluators)
@@ -680,10 +652,6 @@ def __init__(self, projects: AsyncProjectsResource) -> None:
680652
def optimizations(self) -> AsyncOptimizationsResourceWithStreamingResponse:
681653
return AsyncOptimizationsResourceWithStreamingResponse(self._projects.optimizations)
682654

683-
@cached_property
684-
def prompts(self) -> AsyncPromptsResourceWithStreamingResponse:
685-
return AsyncPromptsResourceWithStreamingResponse(self._projects.prompts)
686-
687655
@cached_property
688656
def evaluators(self) -> AsyncEvaluatorsResourceWithStreamingResponse:
689657
return AsyncEvaluatorsResourceWithStreamingResponse(self._projects.evaluators)

src/lemma/resources/projects/prompts/__init__.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)