Xin Wang
3aa9e0f432
Enhance DuplexPipeline to support follow-up context for manual opener tool calls
...
- Introduced logic to trigger a follow-up turn when the manual opener greeting is empty.
- Updated `_execute_manual_opener_tool_calls` to return structured tool call and result data.
- Added `_build_manual_opener_follow_up_context` method to construct context for follow-up turns.
- Modified `_handle_turn` to accept system context for improved conversation management.
- Enhanced tests to validate the new follow-up behavior and ensure proper context handling.
2026-03-02 14:27:44 +08:00
Xin Wang
00b88c5afa
Add manual opener tool calls to Assistant model and API
...
- Introduced `manual_opener_tool_calls` field in the Assistant model to support custom tool calls.
- Updated AssistantBase and AssistantUpdate schemas to include the new field.
- Implemented normalization and migration logic for handling manual opener tool calls in the API.
- Enhanced runtime metadata to include manual opener tool calls in responses.
- Updated tests to validate the new functionality and ensure proper handling of tool calls.
- Refactored tool ID normalization to support legacy tool names for backward compatibility.
2026-03-02 12:34:42 +08:00
Xin Wang
b5cdb76e52
Implement initial generated opener logic in DuplexPipeline to utilize tool-capable assistant turns when tools are available. Update tests to verify the correct behavior of the generated opener under various conditions, ensuring proper handling of user input and task management.
2026-03-02 02:47:30 +08:00
Xin Wang
4d553de34d
Refactor assistant greeting logic to conditionally use system prompt for generated openers. Update related tests to verify new behavior and ensure correct metadata handling in API responses. Enhance UI to reflect changes in opener management based on generated opener settings.
2026-03-02 02:38:45 +08:00
Xin Wang
3643431565
Enhance WebSocket session configuration by introducing an optional config.resolved event, which provides a public snapshot of the session's configuration. Update the API reference documentation to clarify the conditions under which this event is emitted and the details it includes. Modify session management to respect the new setting for emitting configuration details, ensuring sensitive information remains secure. Update tests to validate the new behavior and ensure compliance with the updated configuration schema.
2026-03-01 23:08:44 +08:00
Xin Wang
6a46ec69f4
Enhance WebSocket session management by requiring assistant_id as a query parameter for connection. Update API reference documentation to reflect changes in message flow and metadata validation rules, including the introduction of whitelists for allowed metadata fields and restrictions on sensitive keys. Refactor client examples to align with the new session initiation process.
2026-03-01 14:10:38 +08:00
Xin Wang
aae41d4512
Clear stale ASR capture on end of utterance in DuplexPipeline. Add test to verify behavior when conversation state changes, ensuring proper handling of ASR capture variables.
2026-02-28 12:32:35 +08:00
Xin Wang
5f768edf68
Add parameter schema and defaults to ToolResource model and schemas. Implement runtime tool resolution in assistants and tools routers, ensuring proper handling of tool parameters. Update tests to validate new functionality and ensure correct integration of parameter handling in the API.
2026-02-27 14:44:28 +08:00
Xin Wang
d942c85eff
Add new tools to DuplexPipeline: calculator, code_interpreter, turn_on_camera, turn_off_camera, increase_volume, and decrease_volume. Implement fallback schema for unknown string tools and assign default client executors for specific tools. Update tests to validate new functionality and ensure correct tool handling in the pipeline.
2026-02-27 13:59:37 +08:00
Xin Wang
6178cc05bb
Add system-level dynamic variables support in session management. Implement methods to generate and apply built-in variables for current session time, UTC time, and timezone. Update documentation to reflect new variables and enhance tests for dynamic variable handling in the UI components.
2026-02-27 12:08:18 +08:00
Xin Wang
3272a7a68a
Add dynamic variables support in session management and UI components. Implement validation rules for dynamic variables in metadata, including key format and value constraints. Enhance session start handling to manage dynamic variable errors. Update documentation and tests to reflect new functionality.
2026-02-27 11:21:37 +08:00
Xin Wang
562341a72c
add dashscope tts
2026-02-26 03:02:48 +08:00
Xin Wang
72ed7d0512
Unify db api
2026-02-26 01:58:39 +08:00
Xin Wang
6744704c7e
Make get time tool use system tool
2026-02-12 15:39:09 +08:00
Xin Wang
9304927fe9
Import tool setting
2026-02-11 11:04:05 +08:00
Xin Wang
15523d9ec2
Add tts/text output schema
2026-02-11 09:50:46 +08:00
Xin Wang
2d7fc2b700
Add server tool timeout protection
2026-02-10 19:17:45 +08:00
Xin Wang
6cac24918d
Now we have server tool and client tool
2026-02-10 19:13:54 +08:00
Xin Wang
4b8da32787
Update code for tool call
2026-02-10 16:28:20 +08:00