[PAI-957][PAI-875] feat: implemented ask build switcher (#4659)
* feat: implemented ask build switcher
* fix: cleanup
* ask-build implementation in pi backend
* restrict reference to UUIDs in user facing response
* fix oauth flow in the build mode
* fix: OAuth message was being yielded twice
* add mode to chat preferences table
* clean generic_query_tool
* fix: stored the mode in the store
* pseudo streaming of final answer
* remove the no_actions_planned exit in build mode so that it can hanleretrieval only questions also
* migrate to sdk v0.2.0
* add json streaming in reasoning block
* clean unused tools from kit
* merge preview
* default mode for apps call to get-answer is build
* merge changes in Pi folder in preview branch
* fix reasoning header issues in ask mode
* clean no-actions-planned blocks
* logs for entity url tracking
* trim actions prompt. clean pk args from sdk methods
* fix: imlemented improved reasoning block
* project feature toggle before creation in planning mode
* fix nonetype error when entity urls is empty
* fix: reimplemented ask build changes
* fix: ticker
* fix: css
* fix table rendering issue in streaming api
* ask mode rejecting create table request as action
* remove old reasoning chunk stream to avoid duplications
* change header message for tool_message reasoning chunk
* remove results content from thinking block
* remove search active cycle result restriction to 1 entity
* add mode in rewrite. remove long reasoning instruction during tool calls loop
* retain project context during rewrite
* fix: implemneted chevron + fixed max height
* store source in msgs table
* add gpt-5.1 support
* fix rewrite failure due to chatrequest reconstruction error
* fix vector search result display in reasoning
* fix: reasoning header width fixed
* fix place holder resolution in execute-action
* fix project_id placeholder issue
* fix worklog sdk adapter bugs
* aggregate token counting for each step type
* clean action_planner.py code
* upgrade openai and langchain libs
* cleaning workitem tools
* fix: css
* fix: css + updated openai version
* clean tool args handling for workitems, projects, cycles and modules
* clean batch execution code
* feat: update batch execution and build mode helpers
* update links attachments and workitem types and properties tools
* beautify reasoning headers
* update issue_id to workitem_id in worklogs tools
* add pydantic models for types, comments and intake
* clean tool execution steps
* feat: restore apps/pi with latest changes after selective reset
- Restored all apps/pi changes including batch execution cleanup
- Deleted batch_action_orchestrator, batch_execution, and batch_execution_helpers
- Tool refinements and execution helpers updates
- SDK adapter improvements
- Reset other folders to cc5c927ba8 to avoid merge conflicts
* PAI - Fix the tool definitions of get-members api methods
* PAI fix still working msg formatting for mobile endpoint
* fix: build
* clean batch_execution code
* fix: refactor
* updade actions api/v2 endpoint/
* deduplicate tool names before sending to llm
* fix json parsing for claude models
* changes to action execution logic - exclude LLM intelligence
* clean build mode prompts
* add delete workitem tool
---------
Co-authored-by: sunder <[email protected]>
Co-authored-by: sunder <[email protected]>