mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-10 06:18:39 +03:00
* feat(webui): add project workspaces and access controls * feat(webui): add project workspaces and access controls * refactor(tools): centralize workspace access resolution * refactor(webui): remove unused workspace host state * fix(webui): hide estimated file edit label * fix(webui): clarify file edit deletion feedback * fix(webui): label deleted file activity * fix(webui): flatten file edit activity rows * fix(core): remove path-only patch deletion * fix(core): keep apply patch non-destructive * refactor(webui): trim workspace host plumbing * fix(tools): register exec with tools config
32 lines
740 B
Python
32 lines
740 B
Python
"""Shared helpers for OpenAI Responses API providers (Codex, Azure OpenAI)."""
|
|
|
|
from nanobot.providers.openai_responses.converters import (
|
|
convert_messages,
|
|
convert_tools,
|
|
convert_user_message,
|
|
split_tool_call_id,
|
|
)
|
|
from nanobot.providers.openai_responses.parsing import (
|
|
FINISH_REASON_MAP,
|
|
consume_sdk_stream,
|
|
consume_sse,
|
|
consume_sse_with_reasoning,
|
|
iter_sse,
|
|
map_finish_reason,
|
|
parse_response_output,
|
|
)
|
|
|
|
__all__ = [
|
|
"convert_messages",
|
|
"convert_tools",
|
|
"convert_user_message",
|
|
"split_tool_call_id",
|
|
"iter_sse",
|
|
"consume_sse",
|
|
"consume_sse_with_reasoning",
|
|
"consume_sdk_stream",
|
|
"map_finish_reason",
|
|
"parse_response_output",
|
|
"FINISH_REASON_MAP",
|
|
]
|