Skip to content

Commit 26b763c

Browse files
feat: add cli for memory tools knowl. and runtime. (#25)
2 parents 000160e + d63537f commit 26b763c

File tree

13 files changed

+3513
-19
lines changed

13 files changed

+3513
-19
lines changed

agentkit/sdk/knowledge/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
from .client import AgentkitKnowledge
14+
from .client import AgentkitKnowledgeClient
1515
from .types import (
1616
ListKnowledgeBasesRequest,
1717
ListKnowledgeBasesResponse,

agentkit/toolkit/builders/local_docker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def generate_dockerfile_content() -> str:
322322

323323
StringIO()
324324

325-
# 使用 renderer 渲染到字符串
325+
# Use renderer to render to string
326326
template = renderer.env.get_template(docker_config.template_name)
327327
rendered = template.render(**context)
328328
return rendered
@@ -372,7 +372,7 @@ def generate_dockerfile_content() -> str:
372372
image=ImageInfo(
373373
repository=image_name,
374374
tag=image_tag,
375-
digest=image_id, # Docker image ID 作为 digest
375+
digest=image_id, # Docker image ID as digest
376376
),
377377
build_timestamp=datetime.now(),
378378
build_logs=build_logs,

agentkit/toolkit/cli/cli.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
from agentkit.toolkit.cli.cli_launch import launch_command
3030
from agentkit.toolkit.cli.cli_status import status_command
3131
from agentkit.toolkit.cli.cli_destroy import destroy_command
32+
from agentkit.toolkit.cli.cli_memory import memory_app
33+
from agentkit.toolkit.cli.cli_knowledge import knowledge_app
34+
from agentkit.toolkit.cli.cli_tools import tools_app
35+
from agentkit.toolkit.cli.cli_runtime import runtime_app
3236

3337
# Note: Avoid importing heavy packages at the top to keep CLI startup fast
3438

@@ -92,6 +96,12 @@ def main(
9296
app.command(name="status")(status_command)
9397
app.command(name="destroy")(destroy_command)
9498

99+
# Sub-app groups
100+
app.add_typer(memory_app, name="memory")
101+
app.add_typer(knowledge_app, name="knowledge")
102+
app.add_typer(tools_app, name="tools")
103+
app.add_typer(runtime_app, name="runtime")
104+
95105

96106
if __name__ == "__main__":
97107
app()

0 commit comments

Comments
 (0)