vectie/moonfish/model does not have a README file
pub(all) struct ContextBudgetInput {
run_id : String
stage : ModelStage
model : String
gateway : ModelGateway
packet : PromptPacket
reserved_completion_tokens : Int
max_prompt_ratio_percent : Int
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct ContextBudgetPlan {
run_id : String
stage : ModelStage
model : String
context_window : Int
estimated_prompt_tokens : Int
reserved_completion_tokens : Int
max_prompt_tokens : Int
available_prompt_tokens : Int
total_estimated_tokens : Int
prune_required : Bool
status : ContextBudgetStatus
summary : String
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct ModelCallRequest {
run_id : String
stage : ModelStage
model : String
base_url : String
schema_id : String
messages : Array[PromptMessage]
required_tools : Array[String]
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct ModelCallResponse {
request : ModelCallRequest
output : StageOutput
health : ModelHealth
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct ModelGateway {
provider : ModelProvider
base_url : String
openai_base_url : String
default_model : String
health : ModelHealth
catalog : Array[ModelCatalogEntry]
usage : ModelUsageSnapshot
contracts : Array[SuiteIntegrationContract]
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct ProviderError {
kind : ProviderErrorKind
status_code : Int?
retryable : Bool
normalized_message : String
} derive(Eq, ToJson, Debug, FromJson)pub(all) struct SuiteStatusRef {
status_path : String
openai_base_url : String
default_model : String
ready : Bool
catalog : Array[ModelCatalogEntry]
usage : ModelUsageSnapshot
contracts : Array[SuiteIntegrationContract]
health_message : String?
} derive(Eq, ToJson, Debug, FromJson)fn context_budget_input(run_id : String, gateway : ModelGateway, packet : PromptPacket, model? : String, reserved_completion_tokens? : Int, max_prompt_ratio_percent? : Int) -> ContextBudgetInputfn model_call_request(run_id : String, gateway : ModelGateway, packet : PromptPacket, model? : String) -> ModelCallRequestfn model_call_response(request : ModelCallRequest, content : String, reasoning_content? : String, usage? : ModelUsage, health? : ModelHealth) -> ModelCallResponsefn model_usage_snapshot(prompt_tokens_used? : Int, completion_tokens_used? : Int, quota_remaining? : Int) -> ModelUsageSnapshotfn moongate_gateway(openai_base_url : String, default_model : String, health? : ModelHealth, catalog? : Array[ModelCatalogEntry], usage? : ModelUsageSnapshot, contracts? : Array[SuiteIntegrationContract]) -> ModelGatewayfn moongate_suite_status_ref(status_path : String, openai_base_url : String, default_model : String, ready? : Bool, catalog? : Array[ModelCatalogEntry], usage? : ModelUsageSnapshot, contracts? : Array[SuiteIntegrationContract], health_message? : String) -> SuiteStatusReffn suite_integration_contract(name : String, path : String, ready? : Bool) -> SuiteIntegrationContractfn suite_status_ref(status_path : String, openai_base_url : String, default_model : String, ready? : Bool, catalog? : Array[ModelCatalogEntry], usage? : ModelUsageSnapshot, contracts? : Array[SuiteIntegrationContract], health_message? : String) -> SuiteStatusRefDependencies