Saiku offers versatile capabilities for automating a wide range of tasks. Whether you’re using it in a project or as a terminal command, understanding how to interact with Saiku is key to leveraging its full potential.
Once you have Saiku installed and configured in your project, you can start using its features. Here’s a basic example of how to use Saiku for a simple task.
import Agent from 'saiku/agents/agent';// Initialize the agent with default optionsconst agent = new Agent();// Example task: Summarizing textconst task = "Summarize the following text: '...long text here...'";// Using the agent to perform the taskagent.interact(task).then(response => { console.log('Summary:', response.text);});
This script sends a text summarization task to Saiku and logs the response.
If you installed Saiku globally, you can use it directly from your terminal. This is ideal for quick tasks without needing to integrate into a project.
For more complex tasks and configurations, refer to our Advanced Topics section where you can find detailed guides on customizing and extending Saiku’s capabilities.Start experimenting with Saiku in your projects or directly in your terminal and discover the many ways it can streamline and enhance your workflow.