import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const applicationSchema = await client.applicationSchemas.retrieve({ version: 'OFFLINE' });
console.log(applicationSchema);{}import SGPClient from 'sgp';
const client = new SGPClient({
apiKey: 'My API Key',
});
const applicationSchema = await client.applicationSchemas.retrieve({ version: 'OFFLINE' });
console.log(applicationSchema);{}An enum representing the version states of an application and its nodes' schemas. Attributes: V0: The initial version of an application schema. AGENTS_SERVICE: Application schema references egp_services definition. OFFLINE: Application schema for applications that do not run on SGP directly.
OFFLINE, V0, AGENTS_SERVICE Successful Response
Show child attributes
TEXT_INPUT_NODE, TEXT_OUTPUT_NODE, KNOWLEDGE_BASE_INPUT_NODE, KNOWLEDGE_BASE_NODE, MULTI_KNOWLEDGE_BASE_INPUT_NODE, MULTI_KNOWLEDGE_BASE_NODE, RERANKER_NODE, PROMPT_ENGINEERING_NODE, COMPLETION_MODEL_INPUT_NODE, COMPLETION_MODEL_NODE, EXTERNAL_ENDPOINT_NODE, DOCUMENT_INPUT_NODE, MAP_REDUCE_NODE, DOCUMENT_SEARCH_NODE, DOCUMENT_PROMPT_NODE An enum representing the version states of an application and its nodes' schemas. Attributes: V0: The initial version of an application schema. AGENTS_SERVICE: Application schema references egp_services definition. OFFLINE: Application schema for applications that do not run on SGP directly.
OFFLINE, V0, AGENTS_SERVICE Show child attributes
Show child attributes
Show child attributes
"NUMBER"Show child attributes
Show child attributes
Represents the possible types of values for an application configuration, inputs and outputs.
The available types are:
TEXT, STRING_ARRAY, NUMBER, BOOL, CHUNK_ARRAY, DOCUMENT_ARRAY, KNOWLEDGE_BASE_ID, KNOWLEDGE_BASE_ID_ARRAY, COMPLETION_MODEL_ID Show child attributes
Show child attributes
Represents the possible types of values for an application configuration, inputs and outputs.
The available types are:
TEXT, STRING_ARRAY, NUMBER, BOOL, CHUNK_ARRAY, DOCUMENT_ARRAY, KNOWLEDGE_BASE_ID, KNOWLEDGE_BASE_ID_ARRAY, COMPLETION_MODEL_ID INPUT_NODE, OUTPUT_NODE, RAG_NODE