Class TodoListInterceptor.Builder
java.lang.Object
com.alibaba.cloud.ai.graph.agent.interceptor.todolist.TodoListInterceptor.Builder
- Enclosing class:
- TodoListInterceptor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()systemPrompt(String systemPrompt) Set a custom system prompt for guiding todo usage.todoEventHandler(WriteTodosTool.TodoEventHandler todoEventHandler) Set handler invoked when todos are updated.toolDescription(String toolDescription) Set a custom tool description for the write_todos tool.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
systemPrompt
Set a custom system prompt for guiding todo usage. -
toolDescription
Set a custom tool description for the write_todos tool. -
todoEventHandler
public TodoListInterceptor.Builder todoEventHandler(WriteTodosTool.TodoEventHandler todoEventHandler) Set handler invoked when todos are updated. Use for persistence, UI notification, or custom logic. -
build
-