feat(*): 模型协议 - 升级声明式协议、扩充官方插件并完善生成任务恢复
This commit is contained in:
1 parent
3f4a9ea3d0
commit
4724f0767b
132 files changed
+4576
-1420
No files matched your search
@@ -22,6 +22,23 @@ type AgentAdapter interface {
|
||||
ParseAgent(context.Context, []byte) (AgentResult, error)
|
||||
}
|
||||
|
||||
// AgentCapability lets the host distinguish a declarative provider that
|
||||
// actually declares an agent operation from one that only satisfies the Go
|
||||
// method set through the shared manifest adapter implementation.
|
||||
type AgentCapability interface {
|
||||
AgentAvailable() bool
|
||||
}
|
||||
|
||||
// ResultAdapter optionally resolves an authenticated binary result after an
|
||||
// asynchronous task succeeds without returning a public media URL.
|
||||
type ResultAdapter interface {
|
||||
BuildResult(context.Context, PollContext) (RequestSpec, error)
|
||||
}
|
||||
|
||||
type ResultCapability interface {
|
||||
ResultAvailable() bool
|
||||
}
|
||||
|
||||
type AgentRequestContext struct {
|
||||
BaseURL string
|
||||
Model string
|
||||
@@ -29,9 +46,10 @@ type AgentRequestContext struct {
|
||||
}
|
||||
|
||||
type AgentToolCall struct {
|
||||
ID string
|
||||
Name string
|
||||
Arguments string
|
||||
ID string
|
||||
Name string
|
||||
Arguments string
|
||||
ThoughtSignature string
|
||||
}
|
||||
|
||||
type AgentResult struct {
|
||||
|
||||
Reference in new issue
Block a user