Restrict API types visibility — types module is now private
Only Message, Role, MessageContent, ContentPart, ToolCall, FunctionCall, Usage, ImageUrl are pub-exported from agent::api. Internal types (ChatRequest, ChatCompletionChunk, ChunkChoice, Delta, ReasoningConfig, ToolCallDelta, FunctionCallDelta) are pub(crate) — invisible outside the crate. All callers updated to import from agent::api:: instead of agent::api::types::. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
25f4cfabbb
commit
f33b1767da
10 changed files with 17 additions and 16 deletions
|
|
@ -414,7 +414,7 @@ impl InteractScreen {
|
|||
/// Route an agent entry to pane items.
|
||||
/// Returns empty vec for entries that shouldn't be displayed.
|
||||
fn route_entry(entry: &crate::agent::context::ConversationEntry) -> Vec<(PaneTarget, String, Marker)> {
|
||||
use crate::agent::api::types::Role;
|
||||
use crate::agent::api::Role;
|
||||
use crate::agent::context::ConversationEntry;
|
||||
|
||||
if let ConversationEntry::Memory { .. } = entry {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ use ratatui::{
|
|||
|
||||
use super::{App, ScreenView, screen_legend};
|
||||
use crate::agent::context::ConversationEntry;
|
||||
use crate::agent::api::types::Role;
|
||||
use crate::agent::api::Role;
|
||||
|
||||
pub(crate) struct SubconsciousScreen {
|
||||
selected: usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue