Private Static __lastPrivate Static __refreshPrivate Static __skipPrivate Static _defaultDefault name for new conversations
Private Static _maxMaximum number of historical messages to include in a conversation context
Builds or retrieves Skip entities from cache Uses caching with request deduplication to avoid expensive rebuilding of entity information Multiple concurrent calls will share the same refresh operation
Database connection
Whether to force a refresh regardless of cache state
Minutes before cache expires
Array of entity information
Protected BuildLoads the conversations that have been updated or added since the last learning cycle These are used to train Skip and improve its understanding
The date of the last learning cycle
Database connection
User context for the request
Array of conversations that are new or have been updated since the last cycle
Protected BuildPackages up queries from the metadata based on their status Used to provide Skip with information about available queries
The status of queries to include
Array of query information objects
Protected BuildBuilds an array of agent requests These are requests that have been made to the AI agent
User context for loading the requests
Array of agent request objects
Protected CreateAIMessageCreates a conversation detail entry for an AI message Stores the AI response in the conversation history
The response from the Skip API
ID of the conversation
User context for the operation
ID of the created conversation detail, or empty string if creation failed
Executes an analysis query with Skip This is the primary entry point for general Skip conversations
The question or message from the user
ID of an existing conversation, or empty for a new conversation
Database connection
Publisher/subscriber for events
Optional DataContextId: stringOptional ID of a data context to use
Optional ForceEntityRefresh: booleanWhether to force a refresh of entity metadata
Optional StartTime: DateResult of the Skip interaction
Handles a chat interaction with Skip about a specific data record Allows users to ask questions about a particular entity record
The question or message from the user
ID of an existing conversation, or empty for a new conversation
The name of the entity the record belongs to
The primary key values that identify the specific record
Publisher/subscriber for events
Result of the Skip interaction
Executes a script in the context of a data context Allows running code against data context objects
Publisher/subscriber for events
ID of the data context to run the script against
The script to execute
Result of the script execution
Protected FinishFinishes a successful conversation and notifies the user Creates necessary records, artifacts, and notifications
The analysis complete response from Skip
Data context associated with the conversation
Data context entity
Metadata instance
User information
Conversation entity
Publisher/subscriber for events
User payload from context
Database connection
The ID of the AI message conversation detail
Protected GetGets distinct values for a field from the database Used to provide Skip with information about the possible values
Field information
Database connection
Array of distinct values for the field
Protected GetGets the date of the last complete learning cycle for the Skip agent Used to determine which data to include in the next learning cycle
ID of the Skip agent
User context for the query
Date of the last complete learning cycle, or epoch if none exists
Protected HandleHandles the analysis complete phase of the Skip chat process Finalizes the conversation and creates necessary artifacts
The original request sent to Skip
The analysis complete response from Skip
The original user question
User information
Database connection
ID of the conversation
User payload from context
Publisher/subscriber for events
Conversation entity
Conversation detail entity for the user message
Data context associated with the conversation
Data context entity
Result of the Skip interaction
Protected HandleHandles the clarifying question phase of the Skip chat process Creates a conversation detail for the clarifying question from Skip
The original request sent to Skip
The clarifying question response from Skip
The original user question
User information
Database connection
ID of the conversation
User payload from context
Publisher/subscriber for events
Conversation entity
Conversation detail entity for the user message
Result of the Skip interaction
Protected HandleHandles the data request phase of the Skip chat process Processes data requests from Skip and loads requested data
The original request sent to Skip
The data request response from Skip
The original user question
User information
Database connection
ID of the conversation
User payload from context
Publisher/subscriber for events
Conversation entity
Conversation detail entity for the user message
Data context associated with the conversation
Data context entity
Tracking count to prevent infinite loops
Result of the Skip interaction
Protected HandleHandles initial object loading for Skip chat interactions Creates or loads conversation objects, data contexts, and other required entities
Database connection
ID of an existing conversation, or empty for a new one
The user's question or message
User information
User payload from context
Metadata instance
Optional ID of a data context to use
Object containing loaded entities and contexts
Protected HandleHandles the main Skip chat request processing flow Routes the request through the different phases based on the Skip API response
Skip API request to send
The question or message from the user
User information
Database connection
ID of the conversation
User payload from context
Publisher/subscriber for events
Metadata instance
Conversation entity
Conversation detail entity for the user message
Data context associated with the conversation
Data context entity
Tracking count to prevent infinite loops
Result of the Skip interaction
Protected LoadLoads conversation details from the database and transforms them into Skip message format Used to provide Skip with conversation history for context
Database connection
ID of the conversation to load details for
Optional maxHistoricalMessages: numberMaximum number of historical messages to include
Optional roleFilter: stringArray of messages in Skip format
Protected MapDBRoleProtected PackPacks entity rows for inclusion in Skip requests Provides sample data based on entity configuration
Entity information
Database connection
Array of entity rows based on packing configuration
Protected PackPacks possible values for an entity field These values help Skip understand the domain and valid values for fields
Field information
Database connection
Array of possible values for the field
Protected PackPacks information about a single entity field Includes metadata and possible values
Field information
Database connection
Packaged field information
Protected PackPacks information about a single entity for Skip Includes fields, relationships, and sample data
Entity information
Database connection
Packaged entity information
Protected PackPacks information about a single entity relationship These relationships help Skip understand the data model
Relationship information
Packaged relationship information
Protected PublishPublishes a status update message to the user based on the Skip API response Provides feedback about what phase of processing is happening
The response from the Skip API
User payload from context
ID of the conversation
Publisher/subscriber for events
Re-attaches the current session to receive status updates for a processing conversation This is needed after page reloads to resume receiving push notifications
Protected buildBuilds the base Skip API request with common fields and data Creates the foundation for both chat and learning cycle requests
The user making the request
The data source to use
Whether to include entities in the request
Whether to include queries in the request
Whether to include agent notes in the request
Whether to include agent requests in the request
Whether to force refresh of entities
Whether to include a callback key and access token
Additional info to include in the access token
Base request data that can be used by specific request builders
Protected buildRecursively builds the category path for a query
Protected buildBuilds up an array of artifacts associated with a conversation Artifacts are content or documents generated during conversations
User context for the query
Database connection
ID of the conversation
Array of artifacts associated with the conversation
Protected buildBuilds the array of API keys for various AI services These are used by Skip to call external AI services
Array of API keys for different vendor services
Protected buildBuilds the chat API request for Skip Creates a request specific to a chat interaction
Array of messages in the conversation
ID of the conversation
Data context associated with the conversation
The phase of the request (initial, clarifying, etc.)
Whether to include entities in the request
Whether to include queries in the request
Whether to include agent notes in the request
Whether to include agent requests in the request
User context for the request
Database connection
Whether to force refresh of entities
Whether to include a callback key and access token
Complete chat request object
Protected buildBuilds the learning API request for Skip Creates a request specific to the learning cycle operation
ID of the current learning cycle
Date of the last completed learning cycle
Whether to include entities in the request
Whether to include queries in the request
Whether to include agent notes in the request
Whether to include agent requests in the request
Database connection
User context for the request
Whether to force refresh of entities
Whether to include a callback key and access token
Complete learning cycle request object
Protected buildProtected getGets the ID of an agent note type by its name Falls back to a default note type if the specified one is not found
Name of the agent note type
Default note type to use if the specified one is not found
ID of the agent note type
Protected getGets data from a view Helper method to run a view and retrieve its data
ID of the view to run
User context for the query
Results of the view query
Protected handleHandles the HTTP POST request to the Skip chat API Sends the chat request and processes the response
The chat request payload
The conversation entity object
The conversation detail entity object
Whether to create a conversation detail for the AI response
User context for the request
Result of the Skip interaction
Private refreshRefreshes the Skip entities cache Rebuilds the entity information that is provided to Skip
Database connection
Updated array of entity information
Private setOptional pubSub: PubSubEngine
Resolver for Skip AI interactions Handles conversations with Skip, learning cycles, and related operations. Skip is an AI agent that can analyze data, answer questions, and learn from interactions.
Deprecated
AskSkipResolver and related are not in use anymore, the
See
SkipProxyAgent is used instead