Commit Graph

2066 Commits

Author SHA1 Message Date
mykonos-ibiza 403561f823 Add README and update API URL in Kortix class
- Introduced a new README.md file for the Kortix SDK, detailing installation instructions, quick start examples, and environment setup.
- Updated the default API URL in the Kortix class constructor from `http://localhost:8000/api` to `https://suna.so/api`, ensuring consistency with the production environment.
2025-08-01 03:30:25 +05:30
marko-kraemer 001cfacb01 fix agent run status not updating 2025-07-31 23:33:42 +02:00
mykonos-ibiza c94a0becd9 Enhance agent data handling in from_dict method
- Updated the `from_dict` method in the `agents.py` file to support the conversion of `custom_mcps` and ensure proper handling of nested `MCPConfig` objects.
- Improved data extraction by filtering out unnecessary fields and providing default values for missing configurations, enhancing robustness in agent initialization.
2025-08-01 02:36:21 +05:30
mykonos-ibiza 95b8349e5e Enhance tool enabling logic in KortixAgent class
- Updated the `create` method in the `KortixAgent` class to improve the handling of `allowed_tools`, allowing for more granular control over the enabled state of `AgentPressTools` and `MCPTools`.
- Refactored internal logic to ensure tools are enabled or disabled based on the `allowed_tools` parameter, enhancing flexibility and robustness in tool management.
2025-08-01 02:22:59 +05:30
Bobbie 0250e786cd
Merge pull request #1165 from escapade-mckv/fix-agent-builder-2a
fix agent builder functionality
2025-08-01 02:16:58 +05:30
Saumya e8972fb788 fix agent builder functionality 2025-08-01 02:15:49 +05:30
mykonos-ibiza fac860a308 Enhance tool management in KortixAgent class
- Added support for an optional `allowed_tools` parameter in the `create` method of the `KortixAgent` class to control the enabled state of `AgentPressTools` and `MCPTools`.
- Updated internal logic to conditionally enable tools based on the provided `allowed_tools`, improving flexibility in tool configuration.
2025-08-01 02:13:32 +05:30
mykonos-ibiza e1c1e19dee Refactor agent version handling and improve logging
- Updated the `update_agent` function to access `version_number` and `version_name` directly from the `new_version` object, enhancing clarity and consistency in version management.
- Improved logging statements to reflect the changes in how version details are accessed, ensuring accurate log messages for created versions.
2025-08-01 02:10:40 +05:30
mykonos-ibiza 51aecd3e67 Merge branch 'main' into kortix-sdk 2025-08-01 01:47:10 +05:30
mykonos-ibiza 8793dfcd25 Update Agent class's update method to support optional parameters
- Modified the `update` method in the `Agent` class to accept optional parameters for `name`, `system_prompt`, and `mcp_tools`, enhancing flexibility in agent property updates.
- Adjusted internal logic to handle cases where `mcp_tools` is not provided, improving robustness in tool management.
2025-08-01 01:43:22 +05:30
mykonos-ibiza 2302b656f0 Add update method to Agent class for modifying agent properties
- Implemented an `update` method in the `Agent` class to allow modification of agent properties such as name, system prompt, and associated tools.
- Enhanced tool management by configuring `AgentPressTools` and `MCPTools` for the update process.
- Updated the `create` method in `KortixAgent` to maintain consistency with the new method signature.
2025-08-01 01:40:31 +05:30
mykonos-ibiza 4ca74e9907 Refactor tool management and remove unused files
- Renamed `KortixMCPTools` to `MCPTools` for consistency across the SDK.
- Updated import statements and `__all__` definitions to reflect the new class name.
- Removed unused files including `.kvstore.json`, `example_stream.txt`, `play.py`, `stream.py`, and `stream_test.py` to streamline the project structure and eliminate redundancy.
2025-08-01 01:33:20 +05:30
mykonos-ibiza 4da30a7b9a Refactor KortixMCP to KortixMCPTools and update imports
- Renamed `KortixMCP` to `KortixMCPTools` across the SDK for consistency.
- Updated import statements in relevant files to reflect the new class name.
- Modified the `create` method in `KortixAgent` to use `mcp_tools` instead of `tools`, enhancing clarity in tool management.
2025-08-01 01:31:05 +05:30
mykonos-ibiza bef187319f Update dependencies and refactor KortixMCP initialization
- Added `fastmcp` as a dependency in `pyproject.toml` and updated the lock file accordingly.
- Refactored the `KortixMCP` class constructor to directly instantiate `FastMCPClient` and modified the tool management logic to handle cases where allowed tools are not specified.
- Improved code readability by renaming variables and streamlining the initialization process.
2025-08-01 01:23:20 +05:30
mykonos-ibiza 05d111def6 Refactor KortixMCP initialization and tool management
- Updated the constructor of `KortixMCP` to accept a `FastMCPClient` and a list of allowed tools.
- Modified the `initialize` method to retrieve tools from the new client and filter enabled tools based on the allowed list.
- Improved code readability and organization by renaming variables for clarity.
2025-08-01 01:17:32 +05:30
mykonos-ibiza eb53999291 Refactor whitespace and formatting in async stream printer
- Cleaned up whitespace throughout the `print_stream` function for improved readability.
- Standardized output formatting for function call detection and tool result messages, enhancing clarity in logs.
- Ensured consistent handling of empty lines and message content, contributing to better overall code quality.
2025-07-31 23:33:30 +05:30
mykonos-ibiza ac9dbd7127 Enhance assistant message processing in async stream printer
- Introduced chunk accumulation for assistant messages to handle multi-part responses more effectively.
- Implemented a function to rebuild full text from sorted chunks, improving the accuracy of message content.
- Added state management for parsing function calls, allowing detection and handling of tool usage within messages.
- Updated output formatting to provide clearer logs for assistant messages and tool interactions.
2025-07-31 23:28:17 +05:30
kubet 477a32363f
Merge pull request #1159 from kubet/feat/wip-workflow
Feat: new workflow design
2025-07-31 19:42:16 +02:00
mykonos-ibiza be05cc8348 Update assistant message handling in async stream printer
- Modified the `print_stream` function to include a check for `message_id` before processing assistant messages, ensuring only valid messages are printed.
- Changed output labels from `[MESSAGE]` to `[ASSISTANT]` for clarity in logs, improving the distinction between different message types.
2025-07-31 23:11:39 +05:30
Vukasin a1f187b402 Merge remote-tracking branch 'upstream/main' into feat/wip-workflow 2025-07-31 19:41:02 +02:00
Vukasin f1024d8e07 fix: pipedream app connection 2025-07-31 19:40:55 +02:00
mykonos-ibiza 891e232ce2 Enhance JSON parsing and output formatting in async stream printer
- Updated the `print_stream` function to utilize a new utility function `try_parse_json` for safer JSON parsing, improving error handling for invalid input.
- Enhanced output formatting for various event types, including status updates, assistant messages, and tool execution results, ensuring clearer and more informative logs.
- Added checks for empty content and improved handling of parsing failures to maintain robustness in stream processing.
2025-07-31 23:09:12 +05:30
Bobbie d46bb7b51a
Merge pull request #1154 from escapade-mckv/fix-ux-issues
fix fade in the trigger acordion
2025-07-31 22:26:38 +05:30
mykonos-ibiza 076064a976 Add async stream printer utility for handling event streams
- Introduced a new utility function `print_stream` in `utils.py` to process and print events from an asynchronous string generator.
- The function handles various event types including status updates, assistant responses, and tool execution results, providing formatted output for each case.
- Added error handling for JSON parsing to ensure robustness against invalid input.
2025-07-31 22:17:00 +05:30
Saumya d5dce19023 fix fade in the trigger acordion 2025-07-31 22:06:46 +05:30
Vukasin 1ff01ef83c Merge remote-tracking branch 'upstream/main' into feat/wip-workflow 2025-07-31 18:28:06 +02:00
Vukasin e89cd8d3e7 fix: visual improvements 2025-07-31 18:28:02 +02:00
Bobbie eb851ce6e7
Merge pull request #1153 from escapade-mckv/fix-ux-issues
Fix ux issues
2025-07-31 21:10:28 +05:30
Saumya edb35d8665 Merge branch 'main' into fix-ux-issues 2025-07-31 21:09:26 +05:30
Saumya 01c24faf2f fix issues inconsistncy 2025-07-31 21:09:16 +05:30
Saumya 4e9fc2bc8c fix empty state in mcp logo 2025-07-31 20:27:34 +05:30
Vukasin 1900bf9b60 fix: workflow saving 2025-07-31 15:37:24 +02:00
mykonos-ibiza 8f6af9d29d Merge branch 'main' into kortix-sdk 2025-07-31 18:47:38 +05:30
Bobbie f65e760e9b
Fix UsageLogEntry interface and update truncateString function 2025-07-31 17:41:48 +05:30
mykonos-ibiza 09211d9c55 Refactor UsageLogEntry interface and update truncateString function
- Updated the UsageLogEntry interface to include new fields: message_id, thread_id, created_at, content, total_tokens, estimated_cost, and project_id.
- Modified the truncateString function to handle optional string input, returning an empty string if no input is provided.
2025-07-31 17:37:13 +05:30
Bobbie d062f694e1
Merge pull request #1146 from mykonos-ibiza/update-stripe-dependency 2025-07-31 16:21:13 +05:30
mykonos-ibiza a4141365cb
Merge branch 'main' into stripe-add-yearly-commitment-plans 2025-07-31 16:18:21 +05:30
mykonos-ibiza 8176ceba3b Refactor yearly commitment plan mappings to support environment-specific configurations
- Introduced separate mappings for production and staging environments.
- Updated the configuration to dynamically select the appropriate yearly commitment plans based on the current environment mode.
2025-07-31 16:14:57 +05:30
mykonos-ibiza f7c192ab78 Update Stripe pricing IDs for yearly commitment plans in configuration 2025-07-31 16:10:48 +05:30
mykonos-ibiza 1b608c006d Update Stripe yearly commitment pricing IDs in configuration
- Modified the configuration file to update the Stripe pricing IDs for yearly commitment plans in the production environment.
- Ensured consistency with the latest pricing structure for subscription tiers.
2025-07-31 16:09:33 +05:30
mykonos-ibiza 55a63ba41c Update VSCode settings to disable type checking for both Python and CursorPyright 2025-07-31 16:01:16 +05:30
mykonos-ibiza 2eea1f07aa Update button text and styles for yearly subscription upgrades in pricing section 2025-07-31 15:57:11 +05:30
Bobbie ab140b6541
Merge pull request #1144 from escapade-mckv/fix-ux-issues
fix ux issues
2025-07-31 12:04:23 +05:30
Saumya 42914cba92 fix ux issues 2025-07-31 12:01:57 +05:30
Bobbie 1fdf26f82e
Merge pull request #1143 from escapade-mckv/backend-cleanup
Backend cleanup
2025-07-31 09:59:23 +05:30
Saumya 91508d60f1 cleaup code, remove unused endpoints & methods 2025-07-31 09:58:33 +05:30
Saumya bbfbc3cea5 Merge branch 'fix-mcp-connection' into backend-cleanup 2025-07-31 09:18:54 +05:30
Saumya 1701eb421c fix mcp connection error for tools 2025-07-31 09:18:31 +05:30
Saumya bf3904e860 rtefactor backend 2025-07-31 09:07:09 +05:30
mykonos-ibiza a7b142ed74 Implement yearly commitment subscription plans and enhance billing logic
- Added support for yearly commitment plans with associated pricing tiers in the billing service.
- Introduced validation functions to manage plan changes and restrictions based on business rules.
- Updated configuration to include new yearly commitment pricing in both production and staging environments.
- Enhanced frontend components to handle subscription management, including cancellation and reactivation features.
- Refactored billing-related hooks and API calls to accommodate new subscription types and improve error handling.
2025-07-31 02:16:08 +05:30