Skip to content

Commit

Permalink
Updated to latest API release.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirk-marple committed Dec 7, 2024
1 parent 558f51c commit 4805a61
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion documents/content/ExtractContents.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
extractContents(prompt: $prompt, filter: $filter, specification: $specification, tools: $tools, correlationId: $correlationId) {
specification {
id
Expand Down
2 changes: 1 addition & 1 deletion documents/content/ExtractText.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
extractText(prompt: $prompt, text: $text, textType: $textType, specification: $specification, tools: $tools, correlationId: $correlationId) {
specification {
id
Expand Down
4 changes: 2 additions & 2 deletions graphlit_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1161,9 +1161,9 @@ async def describe_image(
async def extract_contents(
self,
prompt: str,
specification: EntityReferenceInput,
tools: List[ToolDefinitionInput],
filter: Union[Optional[ContentFilter], UnsetType] = UNSET,
specification: Union[Optional[EntityReferenceInput], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> ExtractContents:
Expand All @@ -1187,9 +1187,9 @@ async def extract_text(
self,
prompt: str,
text: str,
specification: EntityReferenceInput,
tools: List[ToolDefinitionInput],
text_type: Union[Optional[TextTypes], UnsetType] = UNSET,
specification: Union[Optional[EntityReferenceInput], UnsetType] = UNSET,
correlation_id: Union[Optional[str], UnsetType] = UNSET,
**kwargs: Any
) -> ExtractText:
Expand Down
2 changes: 1 addition & 1 deletion graphlit_api/extract_contents.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ExtractContents(BaseModel):


class ExtractContentsExtractContents(BaseModel):
specification: "ExtractContentsExtractContentsSpecification"
specification: Optional["ExtractContentsExtractContentsSpecification"]
content: Optional["ExtractContentsExtractContentsContent"]
name: str
value: str
Expand Down
2 changes: 1 addition & 1 deletion graphlit_api/extract_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ExtractText(BaseModel):


class ExtractTextExtractText(BaseModel):
specification: "ExtractTextExtractTextSpecification"
specification: Optional["ExtractTextExtractTextSpecification"]
content: Optional["ExtractTextExtractTextContent"]
name: str
value: str
Expand Down
4 changes: 2 additions & 2 deletions graphlit_api/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@
"""

EXTRACT_CONTENTS_GQL = """
mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
mutation ExtractContents($prompt: String!, $filter: ContentFilter, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
extractContents(
prompt: $prompt
filter: $filter
Expand All @@ -1115,7 +1115,7 @@
"""

EXTRACT_TEXT_GQL = """
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput!, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
mutation ExtractText($prompt: String!, $text: String!, $textType: TextTypes, $specification: EntityReferenceInput, $tools: [ToolDefinitionInput!]!, $correlationId: String) {
extractText(
prompt: $prompt
text: $text
Expand Down

0 comments on commit 4805a61

Please sign in to comment.