Skip to content

Commit e240471

Browse files
committed
Updated to latest API release.
1 parent 74e63d5 commit e240471

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

documents/content/IngestMemory.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $id: ID, $identifier: String, $collections: [EntityReferenceInput!], $correlationId: String) {
2-
ingestMemory(name: $name, text: $text, textType: $textType, id: $id, identifier: $identifier, collections: $collections, correlationId: $correlationId) {
1+
mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $id: ID, $identifier: String, $collections: [EntityReferenceInput!], $agent: EntityReferenceInput, $correlationId: String) {
2+
ingestMemory(name: $name, text: $text, textType: $textType, id: $id, identifier: $identifier, collections: $collections, agent: $agent, correlationId: $correlationId) {
33
id
44
name
55
state

documents/content/IngestText.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
mutation IngestText($text: String!, $name: String, $textType: TextTypes, $uri: URL, $id: ID, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
2-
ingestText(name: $name, text: $text, textType: $textType, uri: $uri, id: $id, isSynchronous: $isSynchronous, workflow: $workflow, identifier: $identifier, collections: $collections, observations: $observations, correlationId: $correlationId) {
1+
mutation IngestText($text: String!, $name: String, $textType: TextTypes, $uri: URL, $id: ID, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $agent: EntityReferenceInput, $correlationId: String) {
2+
ingestText(name: $name, text: $text, textType: $textType, uri: $uri, id: $id, isSynchronous: $isSynchronous, workflow: $workflow, identifier: $identifier, collections: $collections, observations: $observations, agent: $agent, correlationId: $correlationId) {
33
id
44
name
55
state

documents/content/IngestUri.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
mutation IngestUri($name: String, $uri: URL!, $id: ID, $mimeType: String, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
2-
ingestUri(name: $name, uri: $uri, id: $id, mimeType: $mimeType, workflow: $workflow, collections: $collections, observations: $observations, identifier: $identifier, isSynchronous: $isSynchronous, correlationId: $correlationId) {
1+
mutation IngestUri($name: String, $uri: URL!, $id: ID, $mimeType: String, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $agent: EntityReferenceInput, $correlationId: String) {
2+
ingestUri(name: $name, uri: $uri, id: $id, mimeType: $mimeType, workflow: $workflow, collections: $collections, observations: $observations, agent: $agent, identifier: $identifier, isSynchronous: $isSynchronous, correlationId: $correlationId) {
33
id
44
name
55
state

graphlit_api/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2492,6 +2492,7 @@ async def ingest_memory(
24922492
id: Union[Optional[str], UnsetType] = UNSET,
24932493
identifier: Union[Optional[str], UnsetType] = UNSET,
24942494
collections: Union[Optional[list[EntityReferenceInput]], UnsetType] = UNSET,
2495+
agent: Union[Optional[EntityReferenceInput], UnsetType] = UNSET,
24952496
correlation_id: Union[Optional[str], UnsetType] = UNSET,
24962497
**kwargs: Any
24972498
) -> IngestMemory:
@@ -2502,6 +2503,7 @@ async def ingest_memory(
25022503
"id": id,
25032504
"identifier": identifier,
25042505
"collections": collections,
2506+
"agent": agent,
25052507
"correlationId": correlation_id,
25062508
}
25072509
response = await self.execute(
@@ -2527,6 +2529,7 @@ async def ingest_text(
25272529
observations: Union[
25282530
Optional[list[ObservationReferenceInput]], UnsetType
25292531
] = UNSET,
2532+
agent: Union[Optional[EntityReferenceInput], UnsetType] = UNSET,
25302533
correlation_id: Union[Optional[str], UnsetType] = UNSET,
25312534
**kwargs: Any
25322535
) -> IngestText:
@@ -2541,6 +2544,7 @@ async def ingest_text(
25412544
"workflow": workflow,
25422545
"collections": collections,
25432546
"observations": observations,
2547+
"agent": agent,
25442548
"correlationId": correlation_id,
25452549
}
25462550
response = await self.execute(
@@ -2594,6 +2598,7 @@ async def ingest_uri(
25942598
observations: Union[
25952599
Optional[list[ObservationReferenceInput]], UnsetType
25962600
] = UNSET,
2601+
agent: Union[Optional[EntityReferenceInput], UnsetType] = UNSET,
25972602
correlation_id: Union[Optional[str], UnsetType] = UNSET,
25982603
**kwargs: Any
25992604
) -> IngestUri:
@@ -2607,6 +2612,7 @@ async def ingest_uri(
26072612
"workflow": workflow,
26082613
"collections": collections,
26092614
"observations": observations,
2615+
"agent": agent,
26102616
"correlationId": correlation_id,
26112617
}
26122618
response = await self.execute(

graphlit_api/input_types.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3518,6 +3518,7 @@ class ContentInput(BaseModel):
35183518
creation_date: Optional[Any] = Field(alias="creationDate", default=None)
35193519
modified_date: Optional[Any] = Field(alias="modifiedDate", default=None)
35203520
workflow: Optional["EntityReferenceInput"] = None
3521+
agent: Optional["EntityReferenceInput"] = None
35213522

35223523

35233524
class LinearProjectsInput(BaseModel):
@@ -5891,6 +5892,7 @@ class ContentUpdateInput(BaseModel):
58915892
file_modified_date: Optional[Any] = Field(alias="fileModifiedDate", default=None)
58925893
creation_date: Optional[Any] = Field(alias="creationDate", default=None)
58935894
modified_date: Optional[Any] = Field(alias="modifiedDate", default=None)
5895+
agent: Optional["EntityReferenceInput"] = None
58945896
summary: Optional[str] = None
58955897
custom_summary: Optional[str] = Field(alias="customSummary", default=None)
58965898
keywords: Optional[list[str]] = None
@@ -7178,6 +7180,7 @@ class PagePreparationPropertiesInput(BaseModel):
71787180

71797181
class FactInput(BaseModel):
71807182
content: Optional["EntityReferenceInput"] = None
7183+
conversation: Optional["EntityReferenceInput"] = None
71817184
persona: Optional["EntityReferenceInput"] = None
71827185
text: str
71837186
valid_at: Optional[Any] = Field(alias="validAt", default=None)

graphlit_api/operations.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2996,14 +2996,15 @@
29962996
"""
29972997

29982998
INGEST_MEMORY_GQL = """
2999-
mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $id: ID, $identifier: String, $collections: [EntityReferenceInput!], $correlationId: String) {
2999+
mutation IngestMemory($text: String!, $name: String, $textType: TextTypes, $id: ID, $identifier: String, $collections: [EntityReferenceInput!], $agent: EntityReferenceInput, $correlationId: String) {
30003000
ingestMemory(
30013001
name: $name
30023002
text: $text
30033003
textType: $textType
30043004
id: $id
30053005
identifier: $identifier
30063006
collections: $collections
3007+
agent: $agent
30073008
correlationId: $correlationId
30083009
) {
30093010
id
@@ -3052,7 +3053,7 @@
30523053
"""
30533054

30543055
INGEST_TEXT_GQL = """
3055-
mutation IngestText($text: String!, $name: String, $textType: TextTypes, $uri: URL, $id: ID, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
3056+
mutation IngestText($text: String!, $name: String, $textType: TextTypes, $uri: URL, $id: ID, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $agent: EntityReferenceInput, $correlationId: String) {
30563057
ingestText(
30573058
name: $name
30583059
text: $text
@@ -3064,6 +3065,7 @@
30643065
identifier: $identifier
30653066
collections: $collections
30663067
observations: $observations
3068+
agent: $agent
30673069
correlationId: $correlationId
30683070
) {
30693071
id
@@ -3167,7 +3169,7 @@
31673169
"""
31683170

31693171
INGEST_URI_GQL = """
3170-
mutation IngestUri($name: String, $uri: URL!, $id: ID, $mimeType: String, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $correlationId: String) {
3172+
mutation IngestUri($name: String, $uri: URL!, $id: ID, $mimeType: String, $identifier: String, $isSynchronous: Boolean, $workflow: EntityReferenceInput, $collections: [EntityReferenceInput!], $observations: [ObservationReferenceInput!], $agent: EntityReferenceInput, $correlationId: String) {
31713173
ingestUri(
31723174
name: $name
31733175
uri: $uri
@@ -3176,6 +3178,7 @@
31763178
workflow: $workflow
31773179
collections: $collections
31783180
observations: $observations
3181+
agent: $agent
31793182
identifier: $identifier
31803183
isSynchronous: $isSynchronous
31813184
correlationId: $correlationId

0 commit comments

Comments
 (0)