Update Conversation
User Intent
"I want to update a conversation's configuration"
Operation
SDK Method:
graphlit.updateConversation()GraphQL:
updateConversationmutationEntity Type: Conversation
Common Use Cases: Change conversation name, enable/disable, update specification
TypeScript (Canonical)
import { Graphlit } from 'graphlit-client';
import { Types } from 'graphlit-client/dist/generated/graphql-types';
const graphlit = new Graphlit();
const conversationId = 'conversation-id-here';
// Update conversation name
await graphlit.updateConversation({
id: conversationId,
name: 'Updated Conversation Name'
});
console.log('Conversation updated');
// Change model specification
await graphlit.updateConversation({
id: conversationId,
specification: { id: newSpecificationId }
});
console.log('Conversation model updated');Parameters
ConversationUpdateInput (Required)
id(string): Conversation IDname(string): New name (optional)specification(EntityReferenceInput): New specification (optional)
Response
{
updateConversation: {
id: string;
}
}Last updated
Was this helpful?