载入中...
搜索中...
未找到

In-engine AI / MCP session surface for DevTools. 更多...

#include <AiPanel.hpp>

Public 类型

using ImGuiDrawer = void(*)(AiPanel &panel)
 

Public 成员函数

 AiPanel (const AiPanel &)=delete
 
AiPaneloperator= (const AiPanel &)=delete
 
void setVisible (bool on)
 
bool isVisible () const
 
void toggleVisible ()
 
void setMcpPort (int port)
 
int mcpPort () const
 
void setMcpConnected (bool on)
 
bool mcpConnected () const
 
void setClientName (std::string name)
 
std::string clientName () const
 
void clearLog ()
 
void addLog (std::string kind, std::string title, std::string detail={})
 
void addNote (std::string text)
 
std::vector< AiLogEntryrecentLog (size_t max=64) const
 
std::string formatLog (size_t max=64) const
 
std::string statusLine () const
 Compact status line for overlays / MCP resources.
 
void drawImGui ()
 Optional ImGui draw hook. Default no-op: in-engine AI status is exposed via MCP / eve.dev.ai. ImGui drawing is registered by the host so EVDevTools does not need to include imgui.h.
 
void setMaxEntries (size_t n)
 
size_t maxEntries () const
 

静态 Public 成员函数

static AiPanelinstance ()
 
static void setImGuiDrawer (ImGuiDrawer fn)
 

友元

template<typename >
struct Immortal
 

详细描述

In-engine AI / MCP session surface for DevTools.

Records recent MCP tool calls and free-form notes so humans (ImGui panel / script API) and agents (MCP resource eve://ai-session) share one log. Drawing is optional — drawImGui() is a no-op when imgui is unavailable.

在文件 AiPanel.hpp27 行定义.

成员类型定义说明

◆ ImGuiDrawer

using eve::dev::AiPanel::ImGuiDrawer = void (*)(AiPanel& panel)

在文件 AiPanel.hpp61 行定义.

构造及析构函数说明

◆ AiPanel()

eve::dev::AiPanel::AiPanel ( const AiPanel )
delete

成员函数说明

◆ addLog()

void eve::dev::AiPanel::addLog ( std::string  kind,
std::string  title,
std::string  detail = {} 
)

◆ addNote()

void eve::dev::AiPanel::addNote ( std::string  text)

在文件 AiPanel.cpp95 行定义.

引用了 addLog().

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

◆ clearLog()

void eve::dev::AiPanel::clearLog ( )

在文件 AiPanel.cpp79 行定义.

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

◆ clientName()

std::string eve::dev::AiPanel::clientName ( ) const

在文件 AiPanel.cpp74 行定义.

◆ drawImGui()

void eve::dev::AiPanel::drawImGui ( )

Optional ImGui draw hook. Default no-op: in-engine AI status is exposed via MCP / eve.dev.ai. ImGui drawing is registered by the host so EVDevTools does not need to include imgui.h.

在文件 AiPanel.cpp140 行定义.

被这些函数引用 eve::dev::DevTool::drawAiPanel().

◆ formatLog()

std::string eve::dev::AiPanel::formatLog ( size_t  max = 64) const

在文件 AiPanel.cpp106 行定义.

引用了 recentLog().

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

◆ instance()

AiPanel & eve::dev::AiPanel::instance ( )
static

◆ isVisible()

bool eve::dev::AiPanel::isVisible ( ) const

在文件 AiPanel.cpp42 行定义.

被这些函数引用 eve::dev::DevTool::exposeScriptApi() , 以及 toggleVisible().

◆ maxEntries()

size_t eve::dev::AiPanel::maxEntries ( ) const
inline

在文件 AiPanel.hpp65 行定义.

◆ mcpConnected()

bool eve::dev::AiPanel::mcpConnected ( ) const

在文件 AiPanel.cpp64 行定义.

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

◆ mcpPort()

int eve::dev::AiPanel::mcpPort ( ) const

在文件 AiPanel.cpp54 行定义.

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

◆ operator=()

AiPanel & eve::dev::AiPanel::operator= ( const AiPanel )
delete

◆ recentLog()

std::vector< AiLogEntry > eve::dev::AiPanel::recentLog ( size_t  max = 64) const

在文件 AiPanel.cpp97 行定义.

被这些函数引用 formatLog().

◆ setClientName()

void eve::dev::AiPanel::setClientName ( std::string  name)

在文件 AiPanel.cpp69 行定义.

引用了 name.

◆ setImGuiDrawer()

void eve::dev::AiPanel::setImGuiDrawer ( ImGuiDrawer  fn)
static

在文件 AiPanel.cpp138 行定义.

引用了 fn.

◆ setMaxEntries()

void eve::dev::AiPanel::setMaxEntries ( size_t  n)

在文件 AiPanel.cpp132 行定义.

引用了 n.

◆ setMcpConnected()

void eve::dev::AiPanel::setMcpConnected ( bool  on)

在文件 AiPanel.cpp59 行定义.

被这些函数引用 eve::dev::McpServer::listen().

◆ setMcpPort()

void eve::dev::AiPanel::setMcpPort ( int  port)

在文件 AiPanel.cpp49 行定义.

被这些函数引用 eve::dev::McpServer::listen().

◆ setVisible()

void eve::dev::AiPanel::setVisible ( bool  on)

在文件 AiPanel.cpp37 行定义.

被这些函数引用 eve::dev::DevTool::exposeScriptApi() , 以及 toggleVisible().

◆ statusLine()

std::string eve::dev::AiPanel::statusLine ( ) const

Compact status line for overlays / MCP resources.

在文件 AiPanel.cpp117 行定义.

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

◆ toggleVisible()

void eve::dev::AiPanel::toggleVisible ( )

在文件 AiPanel.cpp47 行定义.

引用了 isVisible() , 以及 setVisible().

被这些函数引用 eve::dev::DevTool::exposeScriptApi().

友元及相关函数文档

◆ Immortal

template<typename >
friend struct Immortal
friend

在文件 AiPanel.hpp69 行定义.


该类的文档由以下文件生成: