Tulip Logo IconTulip
Reference

Exports

The AI package is split by server/client boundaries and feature domains.

Agents

  • @tulip-systems/ai/agents/server

Exports include:

  • defineAgent, DefineAgentOptions
  • TulipAgent, TulipAgentInfo, AgentIdentity, AgentCallOptions
  • Agents (create it with Agents.init), AgentsConfig, AiAgentsDatabase
  • AiRun, AiRunInput, AiRunResult, AiRunStatus, AiRunFilters, AiAgentOutput
  • AiApproval, AiApprovalDetails, AiApprovalStatus, AiApprovalDecision, AiApprovalFilters
  • AiAgentInfo, AiAgentStatus, AiAgentState, AgentsLabels

Chat

  • @tulip-systems/ai/chat/server

Exports include:

  • Chat (create it with Chat.init), ChatConfig, AiChatSendInput

  • AiChat, AiChatRequest, AiApprovalAnswer, AiChatEvent, AiChatDatabase

  • @tulip-systems/ai/chat/client

Exports include:

  • useAssistantChat, UseAssistantChatOptions
  • ChatThread, ChatThreadContent, ChatThreadMessage, ChatThreadActivity, useChatThread
  • ChatComposer, ChatComposerInput, ChatComposerToolbar, ChatComposerActions, ChatComposerAttachmentButton, ChatComposerSubmit
  • ChatMarkdown, ChatReasoning
  • StarterPrompts
  • ToolCallCard, ToolApproval
  • ToolRenderer, ToolChatPart, ChatPart
  • ChatThreadProps, 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, useAgentContext
  • AgentContextValue, AgentContextJsonValue

Tools

  • @tulip-systems/ai/tools/server

Exports include:

  • toolBuilder
  • getTulipToolMetadata, isProofConfirmation
  • agentPolicyOptions, agentPolicyDefaults, AgentPolicy, PolicyTarget, AiAgentTool
  • ToolBase, ToolDefinition, TulipToolDefinition, TulipToolMetadata
  • ToolCall, ToolCaller, ToolPermission, ToolKind, ToolConfirmation, ToolProofMethod
  • AiUser, AiPrincipal, AiTrigger, AiRunReference, AiProofInput

MCP

  • @tulip-systems/ai/mcp/server

Exports include:

  • Mcp (create it with Mcp.init), McpConfig, McpClient, McpToolContent
  • text
  • json
  • resource
  • table
  • McpToolResult, McpContent, McpTextContent, McpImageContent, McpResourceContent
  • AiMcpAppSettings, AiMcpDatabase, MCPToolAnnotations, MCPToolResolverOptions

It needs the optional peer @modelcontextprotocol/server.

Database

  • @tulip-systems/ai/drizzle

Exports include:

  • aiAgentsDrizzleAdapter, aiChatDrizzleAdapter, aiMcpDrizzleAdapter
  • AiAgentsDrizzleSchema, AiChatDrizzleSchema, AiMcpDrizzleSchema
  • AiChatsDrizzleTable, 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, AiChatRequest and the rest
  • the tool types: ToolKind, ToolConfirmation, ToolProofMethod, TulipToolMetadata
  • AgentContextValue
  • agentPolicyOptions, agentPolicyDefaults
  • getTulipToolMetadata, 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.

On this page