Reference
Exports
The AI package is split by server/client boundaries and feature domains.
Agents
@tulip-systems/ai/agents/server
Exports include:
defineAgent,DefineAgentOptionsTulipAgent,TulipAgentInfo,AgentIdentity,AgentCallOptionsAgents(create it withAgents.init),AgentsConfig,AiAgentsDatabaseAiRun,AiRunInput,AiRunResult,AiRunStatus,AiRunFilters,AiAgentOutputAiApproval,AiApprovalDetails,AiApprovalStatus,AiApprovalDecision,AiApprovalFiltersAiAgentInfo,AiAgentStatus,AiAgentState,AgentsLabels
Chat
@tulip-systems/ai/chat/server
Exports include:
-
Chat(create it withChat.init),ChatConfig,AiChatSendInput -
AiChat,AiChatRequest,AiApprovalAnswer,AiChatEvent,AiChatDatabase -
@tulip-systems/ai/chat/client
Exports include:
useAssistantChat,UseAssistantChatOptionsChatThread,ChatThreadContent,ChatThreadMessage,ChatThreadActivity,useChatThreadChatComposer,ChatComposerInput,ChatComposerToolbar,ChatComposerActions,ChatComposerAttachmentButton,ChatComposerSubmitChatMarkdown,ChatReasoningStarterPromptsToolCallCard,ToolApprovalToolRenderer,ToolChatPart,ChatPartChatThreadProps,ChatThreadLabels,ChatComposerProps,ChatComposerLabels,ToolCallCardProps,ToolCallCardLabels,ToolApprovalLabels,ToolApprovalChoice,ChatReasoningLabels,StarterPromptsProps
The chat is streamed on the server by chat.send() of Chat.
Page context
@tulip-systems/ai/context/client
Exports include:
AgentContextProvider,AgentContext,useAgentContextAgentContextValue,AgentContextJsonValue
Tools
@tulip-systems/ai/tools/server
Exports include:
toolBuildergetTulipToolMetadata,isProofConfirmationagentPolicyOptions,agentPolicyDefaults,AgentPolicy,PolicyTarget,AiAgentToolToolBase,ToolDefinition,TulipToolDefinition,TulipToolMetadataToolCall,ToolCaller,ToolPermission,ToolKind,ToolConfirmation,ToolProofMethodAiUser,AiPrincipal,AiTrigger,AiRunReference,AiProofInput
MCP
@tulip-systems/ai/mcp/server
Exports include:
Mcp(create it withMcp.init),McpConfig,McpClient,McpToolContenttextjsonresourcetableMcpToolResult,McpContent,McpTextContent,McpImageContent,McpResourceContentAiMcpAppSettings,AiMcpDatabase,MCPToolAnnotations,MCPToolResolverOptions
It needs the optional peer @modelcontextprotocol/server.
Database
@tulip-systems/ai/drizzle
Exports include:
aiAgentsDrizzleAdapter,aiChatDrizzleAdapter,aiMcpDrizzleAdapterAiAgentsDrizzleSchema,AiChatDrizzleSchema,AiMcpDrizzleSchemaAiChatsDrizzleTable,AiMessagesDrizzleTable,AiMcpAppSettingsDrizzleTable,AiRunsDrizzleTable,AiApprovalsDrizzleTable,AiAgentStatesDrizzleTable
The Drizzle entry point needs the optional peer drizzle-orm.
Types
@tulip-systems/ai/types
The types server and client share. Import from here in client code, not from a server entry. Exports include:
- the service types:
AgentPolicy,PolicyTarget,AiAgentTool,AiAgentStatus,AiAgentInfo,AiRun,AiRunStatus,AiTrigger,AiPrincipal,AiApproval,AiApprovalDetails,AiApprovalStatus,AiApprovalAnswer,AiChatRequestand the rest - the tool types:
ToolKind,ToolConfirmation,ToolProofMethod,TulipToolMetadata AgentContextValueagentPolicyOptions,agentPolicyDefaultsgetTulipToolMetadata,isProofConfirmation
Styles
@tulip-systems/ai/styles.css
Recommendation
Treat these entrypoints as the supported surface area. Avoid importing internal files from src/
paths in application code.